Commit 71464db9 authored by Saurav Girepunje's avatar Saurav Girepunje Committed by Greg Kroah-Hartman

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: default avatarSaurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20191007182649.GA7068@sauravSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd2057e5
...@@ -1550,10 +1550,10 @@ static int proc_do_submiturb(struct usb_dev_state *ps, struct usbdevfs_urb *uurb ...@@ -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_length = le16_to_cpu(dr->wLength);
uurb->buffer += 8; uurb->buffer += 8;
if ((dr->bRequestType & USB_DIR_IN) && uurb->buffer_length) { if ((dr->bRequestType & USB_DIR_IN) && uurb->buffer_length) {
is_in = 1; is_in = true;
uurb->endpoint |= USB_DIR_IN; uurb->endpoint |= USB_DIR_IN;
} else { } else {
is_in = 0; is_in = false;
uurb->endpoint &= ~USB_DIR_IN; uurb->endpoint &= ~USB_DIR_IN;
} }
if (is_in) if (is_in)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment