mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
FROMGIT: 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 <abaci@linux.alibaba.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Link: https://lore.kernel.org/r/1610615002-66235-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit c86cad04dc
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I148300582c77999e4e859ce68dfea426c513718b
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
857bfabcaa
commit
f0b16e4670
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user