]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: gadget: Assign boolean values to a bool variable
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Sun, 7 Feb 2021 06:18:16 +0000 (14:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 10:58:55 +0000 (11:58 +0100)
commitfe6ad68e4a6235aef254233c2630096f1cc8e505
tree2c3b7bfcf18b3f2c3e033ac2fa84ac72326d3906
parentf5d1d63e7359c6b3c65097b4941756b3d8ac0be0
usb: gadget: Assign boolean values to a bool variable

Fix the following coccicheck warnings:

./drivers/usb/gadget/udc/udc-xilinx.c:846:1-17: WARNING: Assignment of
0/1 to bool variable.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1612678696-15794-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/udc-xilinx.c