diff options
author | Ioannis Valasakis <code@wizofe.uk> | 2018-11-09 13:54:57 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-09 09:49:03 -0800 |
commit | 2eece0a88d95cd5f6ad1886567ab20ac2abe60ce (patch) | |
tree | 32439ec532a4e333194bf53ee1efd18a0fd69b96 /drivers/staging/greybus | |
parent | 57d053682ff55aa16a390ddb054a26deb4dfbf9e (diff) | |
download | linux-2eece0a88d95cd5f6ad1886567ab20ac2abe60ce.tar.gz linux-2eece0a88d95cd5f6ad1886567ab20ac2abe60ce.tar.bz2 linux-2eece0a88d95cd5f6ad1886567ab20ac2abe60ce.zip |
staging: greybus: remove comparison to BOOL
Remove two instances of a comparison to BOOL.
Reported by coccinelle.
Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/es2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index b082d81833a0..b4e3d6a3d523 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -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" */ for (i = 0; i < NUM_CPORT_OUT_URB; ++i) { - if (es2->cport_out_urb_busy[i] == false && - es2->cport_out_urb_cancelled[i] == false) { + if (!es2->cport_out_urb_busy[i] && + !es2->cport_out_urb_cancelled[i]) { es2->cport_out_urb_busy[i] = true; urb = es2->cport_out_urb[i]; break; |