Skip to content

Commit

Permalink
xen-blkfront: use true and false for boolean values
Browse files Browse the repository at this point in the history
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é <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
GustavoARSilva authored and axboe committed Aug 6, 2018
1 parent f10fe9d commit f87c30c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f87c30c

Please sign in to comment.