From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: Re: md-cluster: Delete unnecessary braces in unlock_all_bitmaps() Date: Fri, 7 Oct 2016 10:37:17 +0200 Message-ID: <9e1de37a-d98d-c885-b4ff-5a8b2aa1f7a8@users.sourceforge.net> References: <566ABCD9.1060404@users.sourceforge.net> <3a03df66-92ce-20fb-17f3-fb79b9d43c8e@users.sourceforge.net> <20161007074646.GA6039@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20161007074646.GA6039@mwanda> Sender: linux-raid-owner@vger.kernel.org To: Dan Carpenter Cc: linux-raid@vger.kernel.org, Guoqing Jiang , Shaohua Li , LKML , kernel-janitors@vger.kernel.org, Julia Lawall List-Id: linux-raid.ids >> Do not use curly brackets at one source code place >> where a single statement should be sufficient. > > The original style was correct and this is wrong. I have explained this before. Did I change a bit too much in the proposed step according to the following update suggestion? elfring@Sonne:~/Projekte/Linux/next-patched> git checkout d6385db94196b253ae5eb3678fa95cdf1f839fcc && scripts/checkpatch.pl --types BRACES -f drivers/md/md-cluster.c … WARNING: braces {} are not necessary for single statement blocks #1228: FILE: drivers/md/md-cluster.c:1228: + if (cinfo->other_bitmap_lockres[i]) { + lockres_free(cinfo->other_bitmap_lockres[i]); + } … How do you think about to adjust this source code place a bit? Regards, Markus