usb: gadget: udc: remove comparison to bool in mv_u3d_core.c
authorJason Yan <yanaijie@huawei.com>
Sun, 26 Apr 2020 09:42:19 +0000 (17:42 +0800)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:40 +0000 (11:09 +0300)
Fix the following coccicheck warning:

drivers/usb/gadget/udc/mv_u3d_core.c:1551:5-13: WARNING: Comparison to
bool

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/mv_u3d_core.c

index 35e02a8..5bb0568 100644 (file)
@@ -1548,7 +1548,7 @@ static void mv_u3d_handle_setup_packet(struct mv_u3d *u3d, u8 ep_num,
                delegate = true;
 
        /* delegate USB standard requests to the gadget driver */
-       if (delegate == true) {
+       if (delegate) {
                /* USB requests handled by gadget */
                if (setup->wLength) {
                        /* DATA phase from gadget, STATUS phase from u3d */