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>
This commit is contained in:
Saurav Girepunje 2019-10-07 23:56:53 +05:30 committed by Greg Kroah-Hartman
parent dd2057e544
commit 71464db9c2

View File

@ -1550,10 +1550,10 @@ static int proc_do_submiturb(struct usb_dev_state *ps, struct usbdevfs_urb *uurb
uurb->buffer_length = le16_to_cpu(dr->wLength);
uurb->buffer += 8;
if ((dr->bRequestType & USB_DIR_IN) && uurb->buffer_length) {
is_in = 1;
is_in = true;
uurb->endpoint |= USB_DIR_IN;
} else {
is_in = 0;
is_in = false;
uurb->endpoint &= ~USB_DIR_IN;
}
if (is_in)