From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: [PATCH 00/13] md/multipath: Fine-tuning for several function implementations Date: Sun, 2 Oct 2016 13:54:43 +0200 Message-ID: <4a31d7a7-f70c-12f7-202f-963bd8706066@users.sourceforge.net> References: <566ABCD9.1060404@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <566ABCD9.1060404@users.sourceforge.net> Sender: linux-raid-owner@vger.kernel.org To: linux-raid@vger.kernel.org, Jens Axboe , NeilBrown , Shaohua Li Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall List-Id: linux-raid.ids From: Markus Elfring Date: Sun, 2 Oct 2016 13:45:35 +0200 Several update suggestions were taken into account from static source code analysis. Markus Elfring (13): Use kcalloc() in multipath_run() Improve another size determination in multipath_run() Delete four error messages for a failed memory allocation Reduce indentation for four lines in multipath_run() Less function calls in multipath_run() after error detection Delete 13 unwanted spaces behind function names Delete two unwanted spaces behind asterisks Replace a seq_printf() call by seq_puts() in multipath_status() Adjust two function calls together with a variable assignment Add some spaces for better code readability Move a brace for a designated initialiser Delete an unnecessary return statement in multipath_make_request() Replace printk() calls by the usage of higher level interfaces drivers/md/multipath.c | 192 +++++++++++++++++++++++-------------------------- 1 file changed, 88 insertions(+), 104 deletions(-) -- 2.10.0