Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: core: devio.c: Fix assignment of 0/1 to bool variables

Use true/false for is_in bool type in function proc_do_submiturb.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20191007182649.GA7068@saurav
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Saurav Girepunje and committed by
Greg Kroah-Hartman
71464db9 dd2057e5

+2 -2
+2 -2
drivers/usb/core/devio.c
··· 1550 1550 uurb->buffer_length = le16_to_cpu(dr->wLength); 1551 1551 uurb->buffer += 8; 1552 1552 if ((dr->bRequestType & USB_DIR_IN) && uurb->buffer_length) { 1553 - is_in = 1; 1553 + is_in = true; 1554 1554 uurb->endpoint |= USB_DIR_IN; 1555 1555 } else { 1556 - is_in = 0; 1556 + is_in = false; 1557 1557 uurb->endpoint &= ~USB_DIR_IN; 1558 1558 } 1559 1559 if (is_in)