From: Jiapeng Zhong Date: Thu, 14 Jan 2021 09:03:22 +0000 (+0800) Subject: drivers/usb/gadget/udc: Assign boolean values to a bool variable X-Git-Tag: accepted/tizen/unified/20230118.172025~7877^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c86cad04dcc8cc07e0befece5e87175c5c71dd4c;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Felipe Balbi Signed-off-by: Jiapeng Zhong Link: https://lore.kernel.org/r/1610615002-66235-1-git-send-email-abaci-bugfix@linux.alibaba.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index d5e9d20..77610b5 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;