From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: [PATCH 00/10] md/dm-crypt: Fine-tuning for five function implementations Date: Wed, 28 Sep 2016 17:34:01 +0200 Message-ID: <7c232017-e291-fd2d-5516-26e5150d90df@users.sourceforge.net> References: <566ABCD9.1060404@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <566ABCD9.1060404@users.sourceforge.net> Sender: linux-kernel-owner@vger.kernel.org To: dm-devel@redhat.com, linux-raid@vger.kernel.org, Alasdair Kergon , Mike Snitzer , Shaohua Li Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall List-Id: linux-raid.ids From: Markus Elfring Date: Wed, 28 Sep 2016 17:25:17 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (10): Use kcalloc() in crypt_alloc_tfms() Reduce the scope for a variable in crypt_alloc_tfms() Rename a jump label in crypt_message() Delete an unnecessary variable initialisation in crypt_message() Rename a jump label in crypt_set_key() Delete an unnecessary variable initialisation in crypt_set_key() Rename a jump label in crypt_iv_tcw_whitening() Return directly after a failed crypto_alloc_ahash() in crypt_iv_essiv_ctr() Two checks and one function call less in crypt_iv_essiv_ctr() after error detection Delete unnecessary variable initialisations in crypt_iv_essiv_ctr() drivers/md/dm-crypt.c | 51 ++++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 29 deletions(-) -- 2.10.0