* [PATCH] drivers/usb/gadget/udc: Assign boolean values to a bool variable
@ 2021-01-14 9:03 Jiapeng Zhong
2021-01-14 9:22 ` Felipe Balbi
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Zhong @ 2021-01-14 9:03 UTC (permalink / raw)
To: balbi
Cc: gregkh, michal.simek, b-liu, hminas, jbi.octave, linux-usb,
linux-arm-kernel, linux-kernel, Jiapeng Zhong
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>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
---
drivers/usb/gadget/udc/udc-xilinx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers/usb/gadget/udc: Assign boolean values to a bool variable
2021-01-14 9:03 [PATCH] drivers/usb/gadget/udc: Assign boolean values to a bool variable Jiapeng Zhong
@ 2021-01-14 9:22 ` Felipe Balbi
0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2021-01-14 9:22 UTC (permalink / raw)
To: Jiapeng Zhong
Cc: gregkh, michal.simek, b-liu, hminas, jbi.octave, linux-usb,
linux-arm-kernel, linux-kernel, Jiapeng Zhong
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> writes:
> 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>
> Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 857 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-14 9:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 9:03 [PATCH] drivers/usb/gadget/udc: Assign boolean values to a bool variable Jiapeng Zhong
2021-01-14 9:22 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome