projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd2057e
)
usb: core: devio.c: Fix assignment of 0/1 to bool variables
author
Saurav Girepunje
<saurav.girepunje@gmail.com>
Mon, 7 Oct 2019 18:26:53 +0000
(23:56 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 10:34:07 +0000
(12:34 +0200)
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>
drivers/usb/core/devio.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/devio.c
b/drivers/usb/core/devio.c
index 3f899552f6e3c2a8e9a1c58db09c61b5be4bd927..786580901f30f6ec80b76377ed608f701892c717 100644
(file)
--- a/
drivers/usb/core/devio.c
+++ b/
drivers/usb/core/devio.c
@@
-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)