Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751250AbbD3HVv (ORCPT ); Thu, 30 Apr 2015 03:21:51 -0400 Received: from mga11.intel.com ([192.55.52.93]:40337 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbbD3HVt (ORCPT ); Thu, 30 Apr 2015 03:21:49 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,675,1422950400"; d="scan'208";a="687877084" Date: Thu, 30 Apr 2015 15:23:15 +0800 From: Yuanhan Liu To: NeilBrown Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] md/raid5: trivial coding style fix Message-ID: <20150430072315.GB3858@yliu-dev.sh.intel.com> References: <1430377277-6167-1-git-send-email-yuanhan.liu@linux.intel.com> <1430377277-6167-2-git-send-email-yuanhan.liu@linux.intel.com> <20150430171650.4db1bcca@notabene.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150430171650.4db1bcca@notabene.brown> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1309 Lines: 37 On Thu, Apr 30, 2015 at 05:16:50PM +1000, NeilBrown wrote: > On Thu, 30 Apr 2015 15:01:17 +0800 Yuanhan Liu > wrote: > > > Signed-off-by: Yuanhan Liu > > --- > > drivers/md/raid5.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c > > index 2651bda..bae3e2c 100644 > > --- a/drivers/md/raid5.c > > +++ b/drivers/md/raid5.c > > @@ -5789,8 +5789,7 @@ static void raid5d(struct md_thread *thread) > > if (released) > > clear_bit(R5_DID_ALLOC, &conf->cache_state); > > > > - if ( > > - !list_empty(&conf->bitmap_list)) { > > + if (!list_empty(&conf->bitmap_list)) { > > /* Now is a good time to flush some bitmap updates */ > > conf->seq_flush++; > > spin_unlock_irq(&conf->device_lock); > > > I'm happy for these sorts of changes when you are fixing up nearby code, or > if the change significantly improves readability. > But I'd rather not bother is one-off trivial fixes like this. Got it. --yliu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/