summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-26 17:42:19 +0800
committerFelipe Balbi <balbi@kernel.org>2020-05-25 11:09:40 +0300
commit30755dd5047620a715c08f021f3b30e46cb8cc47 (patch)
tree87ef8e628798ac411ca5a56e48437762a1d8346f /drivers/usb/gadget
parentfe4ff11798dfb0f6a7f7657c8f01b52837c4b184 (diff)
downloadlwn-30755dd5047620a715c08f021f3b30e46cb8cc47.tar.gz
lwn-30755dd5047620a715c08f021f3b30e46cb8cc47.zip
usb: gadget: udc: remove comparison to bool in mv_u3d_core.c
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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/udc/mv_u3d_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c
index 35e02a8d0091..5bb0568b934e 100644
--- a/drivers/usb/gadget/udc/mv_u3d_core.c
+++ b/drivers/usb/gadget/udc/mv_u3d_core.c
@@ -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 */