Skip to contentSkip to conversation

staging: lustre: o2iblnd: use bool assignment to true/false

PATCH In review Nicholas Hanley 2 participants 2 messages Nov 7, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: o2iblnd: use bool assignment to true/false

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

---
 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +1 -1
index 13235b0..e2fc65f 100644
@@ -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;
Signature · 1 line
2.10.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Nicholas Hanley

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

Quoted 20 lines

---
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +1 -1
index 13235b0..e2fc65f 100644
@@ -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;
Signature · 1 line
2.10.2