]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: greybus: remove comparison to BOOL
authorIoannis Valasakis <code@wizofe.uk>
Fri, 9 Nov 2018 13:54:57 +0000 (13:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 17:49:03 +0000 (09:49 -0800)
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>
drivers/staging/greybus/es2.c

index b082d81833a0a2da98dd3e233b489db6e315440d..b4e3d6a3d52361b52f07a7e38ae4ecf019660af1 100644 (file)
@@ -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;