Commit 2eece0a8 authored by Ioannis Valasakis's avatar Ioannis Valasakis Committed by Greg Kroah-Hartman

staging: greybus: remove comparison to BOOL

Remove two instances of a comparison to BOOL.
Reported by coccinelle.
Signed-off-by: default avatarIoannis Valasakis <code@wizofe.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 57d05368
...@@ -316,8 +316,8 @@ static struct urb *next_free_urb(struct es2_ap_dev *es2, gfp_t gfp_mask) ...@@ -316,8 +316,8 @@ static struct urb *next_free_urb(struct es2_ap_dev *es2, gfp_t gfp_mask)
/* Look in our pool of allocated urbs first, as that's the "fastest" */ /* Look in our pool of allocated urbs first, as that's the "fastest" */
for (i = 0; i < NUM_CPORT_OUT_URB; ++i) { for (i = 0; i < NUM_CPORT_OUT_URB; ++i) {
if (es2->cport_out_urb_busy[i] == false && if (!es2->cport_out_urb_busy[i] &&
es2->cport_out_urb_cancelled[i] == false) { !es2->cport_out_urb_cancelled[i]) {
es2->cport_out_urb_busy[i] = true; es2->cport_out_urb_busy[i] = true;
urb = es2->cport_out_urb[i]; urb = es2->cport_out_urb[i];
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment