Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753050AbcKGVUe convert rfc822-to-8bit (ORCPT ); Mon, 7 Nov 2016 16:20:34 -0500 Received: from mga14.intel.com ([192.55.52.115]:41121 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751621AbcKGVUc (ORCPT ); Mon, 7 Nov 2016 16:20:32 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,459,1473145200"; d="scan'208";a="1056486067" From: "Dilger, Andreas" To: Nicholas Hanley CC: "Drokin, Oleg" , Greg Kroah-Hartman , James Simmons , "Lustre Development List" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false Thread-Topic: [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false Thread-Index: AQHSOSoAO4EQyOVFo02VKAopkC0g0aDOjVAA Date: Mon, 7 Nov 2016 21:20:30 +0000 Message-ID: <96662E15-7BBE-41BB-9CEB-07BBA34AA90A@intel.com> References: <20161107190138.5730-1-nicholasjhanley@gmail.com> In-Reply-To: <20161107190138.5730-1-nicholasjhanley@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.92.27] Content-Type: text/plain; charset="us-ascii" Content-ID: <05939458DE365646A63BA5A2903FC9A4@intel.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1006 Lines: 29 On Nov 7, 2016, at 12:01, Nicholas Hanley wrote: > > Replace 0 with false in tx_pages_mapped = 0 to be consistent with > the rest of the lustre code. > > Signed-off-by: Nicholas Hanley Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c > index 13235b0..e2fc65f 100644 > --- 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 = false; > struct kib_fmr_pool *fpo; > int npages = 0; > __u64 version; > -- > 2.10.2 >