aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiapeng Zhong <[email protected]>2021-01-14 17:03:22 +0800
committerGreg Kroah-Hartman <[email protected]>2021-01-15 16:00:20 +0100
commitc86cad04dcc8cc07e0befece5e87175c5c71dd4c (patch)
treed2730f220ae96746aae58f6463f4b38cb7a3c378
parent5dc71f1eb8706450b6a30ffd0cd1bd67dd131daa (diff)
drivers/usb/gadget/udc: Assign boolean values to a bool variable
Fix the following coccicheck warnings: ./drivers/usb/gadget/udc/udc-xilinx.c:1957:2-18: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Jiapeng Zhong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/usb/gadget/udc/udc-xilinx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c
index d5e9d20c097d..77610b5f7db5 100644
--- a/drivers/usb/gadget/udc/udc-xilinx.c
+++ b/drivers/usb/gadget/udc/udc-xilinx.c
@@ -1954,7 +1954,7 @@ static void xudc_nonctrl_ep_handler(struct xusb_udc *udc, u8 epnum,
if (intrstatus & (XUSB_STATUS_EP0_BUFF1_COMP_MASK << epnum))
ep->buffer0ready = 0;
if (intrstatus & (XUSB_STATUS_EP0_BUFF2_COMP_MASK << epnum))
- ep->buffer1ready = 0;
+ ep->buffer1ready = false;
if (list_empty(&ep->queue))
return;