Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751711AbcKGGn0 (ORCPT ); Mon, 7 Nov 2016 01:43:26 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:58032 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750717AbcKGGnZ (ORCPT ); Mon, 7 Nov 2016 01:43:25 -0500 Date: Mon, 7 Nov 2016 07:43:33 +0100 From: Greg KH To: James Simmons Cc: Joe Perches , devel@driverdev.osuosl.org, oleg.drokin@intel.com, andreas.dilger@intel.com, linux-kernel@vger.kernel.org, Nicholas Hanley , lustre-devel@lists.lustre.org Subject: Re: [PATCH] staging: lustre: o2iblnd: replace space indentation with tabs Message-ID: <20161107064333.GA6336@kroah.com> References: <20161105000256.11714-1-nicholasjhanley@gmail.com> <1478486861.13362.2.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1005 Lines: 22 On Mon, Nov 07, 2016 at 03:55:36AM +0000, James Simmons wrote: > > > On Mon, 2016-11-07 at 02:02 +0000, James Simmons wrote: > > > > This patch fixes all CODE_INDENT checkpatch errors in o2iblnd. > > > Reviewed-by: James Simmons > > [] > > > > diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c > > [] > > > > @@ -1637,7 +1637,7 @@ int kiblnd_fmr_pool_map(struct kib_fmr_poolset *fps, struct kib_tx *tx, > > > > { > > > > __u64 *pages = tx->tx_pages; > > > > bool is_rx = (rd != tx->tx_rd); > > > > - bool tx_pages_mapped = 0; > > > > + bool tx_pages_mapped = 0; > > > > It's generally better to use bool assignments to true/false not 1/0. > > Nicholas can you resubmit with tx_pages_mapped = false. Looking at the > lustre code its the only place like this. Thanks for pointing this out. No, make it a separate patch, don't change code when you are just changing indentation in the same patch.