Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbcJAPAZ (ORCPT ); Sat, 1 Oct 2016 11:00:25 -0400 Received: from mout.web.de ([217.72.192.78]:50416 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbcJAPAR (ORCPT ); Sat, 1 Oct 2016 11:00:17 -0400 Subject: [PATCH 15/15] md-cluster: Delete unnecessary braces in unlock_all_bitmaps() To: linux-raid@vger.kernel.org, Guoqing Jiang , Shaohua Li References: <566ABCD9.1060404@users.sourceforge.net> <3a03df66-92ce-20fb-17f3-fb79b9d43c8e@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: Date: Sat, 1 Oct 2016 17:00:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <3a03df66-92ce-20fb-17f3-fb79b9d43c8e@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:zYqNUB80WhYTsZDpG/mUzA1zVEw5LJtkTIsGTwWlgx9O5zmYVFV yheQ45znLfWM8PmvVSmD/r8VPpK2vG1TB6BUK1ky1q3wSI2Qs2DO/14p4BE6U3XJAxsKfBB wDLSZBWwshmlr1dQWSW/o+bIpozLS3Cbz4aLjew5ooaMiMNtbbVOR6lQ4WBF/bF78VCREnQ 5Ib9Npd0A2hrVShmohtuw== X-UI-Out-Filterresults: notjunk:1;V01:K0:3hV5Ow6j7Vg=:kCrwSmNEvbkpERcgMgl77K yzV469em9J0G/hTBqtash4OxZ7LuWqc3CbbVxAzWNPvOHBiH7BP7GOTi96GPWr6OkZajZC6GO nWnfcNvg4rty4+9/3GnNQnFIqMJd+mHv2QfXtTDrzFTBLYQEySezf+ZElG4y4ZiCQDnac5rqX +3C/7OiACkc3mItHsrAHSIWMnnceFcanXoEnDtxzpboj5Svyf8IddUokOMr+CsW3rsOzNv3Ft n22QMaI5ipVjqvP/AcC3+FBdAAQKuliPQ8ZDG7n1V/Qr5PwfMgkPgbA/siGwvmvMALBze6WaD brUdPndvTKVf+uuUdiLb2ZH5ZOMdxccchX6ILfKyo9BVAE508VPJvMG4d64nbweORsOlELYvd 6I4buanwG8CPRGuDDTFqABvyF0qYC/eqLTDl/1ErPAA+xKBryLkdKEl9syh6VIXmMhdfxYEAK fHdFvrDQhEoDlB+U9DoZIp6ew1ec+PKl4dzDEDumuBHFbtCrlxXYQRjjoYmRyPimnOfsAjZS+ 0mfWxo3cRLumbHB6y+H4+DdR6t/8fg/ydZuK7qnbSGnAbIVdXBqMa87g1CwJmwVm8ZqXucR8+ kQ+Px/IIfM0WEG1pT1VrxFTvP/WI780GuzABhPjVcL9m2nd1SqbG66biXGimnw18ubXKLSTHU FhlbsOwxj5wr+HzrVlikSiMJCBNlsTYiF7uwvibQUsBMzdtZ4vM71+myA56CrkWSY8dzH2FBE SLuELwq9B1oM4yGJY+dzaSihmnYDoJSQbkL06ymCG0iH9JnTyQplACDKpkn9Q/hy0xuc1LVVc agr8Tee Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 985 Lines: 32 From: Markus Elfring Date: Sat, 1 Oct 2016 16:15:55 +0200 Do not use curly brackets at one source code place where a single statement should be sufficient. Signed-off-by: Markus Elfring --- drivers/md/md-cluster.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 0cade1a..a9bf13d 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c @@ -1223,11 +1223,10 @@ static void unlock_all_bitmaps(struct mddev *mddev) /* release other node's bitmap lock if they are existed */ if (cinfo->other_bitmap_lockres) { - for (i = 0; i < mddev->bitmap_info.nodes - 1; i++) { - if (cinfo->other_bitmap_lockres[i]) { + for (i = 0; i < mddev->bitmap_info.nodes - 1; i++) + if (cinfo->other_bitmap_lockres[i]) lockres_free(cinfo->other_bitmap_lockres[i]); - } - } + kfree(cinfo->other_bitmap_lockres); } } -- 2.10.0