summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-08-06 16:14:55 +0200
committerJens Axboe2018-08-06 16:14:55 +0200
commitf87c30c96cd9b5baa28bc63900f16e04e8c7cbb2 (patch)
tree17feff5a5a2706edba184e269b2098702522c1dd
parentlightnvm: remove minor version check for 2.0 (diff)
downloadkernel-qcow2-linux-f87c30c96cd9b5baa28bc63900f16e04e8c7cbb2.tar.gz
kernel-qcow2-linux-f87c30c96cd9b5baa28bc63900f16e04e8c7cbb2.tar.xz
kernel-qcow2-linux-f87c30c96cd9b5baa28bc63900f16e04e8c7cbb2.zip
xen-blkfront: use true and false for boolean values
Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Acked-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/block/xen-blkfront.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 94300dbe358b..8986adab9bf5 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1436,7 +1436,7 @@ static bool blkif_completion(unsigned long *id,
/* Wait the second response if not yet here. */
if (s2->status == REQ_WAITING)
- return 0;
+ return false;
bret->status = blkif_get_final_status(s->status,
s2->status);
@@ -1537,7 +1537,7 @@ static bool blkif_completion(unsigned long *id,
}
}
- return 1;
+ return true;
}
static irqreturn_t blkif_interrupt(int irq, void *dev_id)