linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false
@ 2016-11-07 19:01 Nicholas Hanley
  2016-11-07 21:20 ` Dilger, Andreas
  0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Hanley @ 2016-11-07 19:01 UTC (permalink / raw)
  To: oleg.drokin, andreas.dilger, gregkh, jsimmons
  Cc: lustre-devel, devel, linux-kernel, Nicholas Hanley

Replace 0 with false in tx_pages_mapped = 0 to be consistent with
the rest of the lustre code.

Signed-off-by: Nicholas Hanley <nicholasjhanley@gmail.com>
---
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false
  2016-11-07 19:01 [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false Nicholas Hanley
@ 2016-11-07 21:20 ` Dilger, Andreas
  0 siblings, 0 replies; 2+ messages in thread
From: Dilger, Andreas @ 2016-11-07 21:20 UTC (permalink / raw)
  To: Nicholas Hanley
  Cc: Drokin, Oleg, Greg Kroah-Hartman, James Simmons,
	Lustre Development List, devel, linux-kernel

On Nov 7, 2016, at 12:01, Nicholas Hanley <nicholasjhanley@gmail.com> 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 <nicholasjhanley@gmail.com>

Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>

> ---
> 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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-07 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 19:01 [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false Nicholas Hanley
2016-11-07 21:20 ` Dilger, Andreas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).