summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-sched.c
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2016-01-26 02:45:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-03 22:44:05 +0100
commitd078c6e4ea5e6a93d44d5815d0ee4a9bb5c5718b (patch)
tree6d7f3c0b115425948f765ab402c4d7b99eb8d5ad /drivers/usb/host/ehci-sched.c
parentusb: host: ehci-sched: use sizeof operator with parens (diff)
downloadlinux-d078c6e4ea5e6a93d44d5815d0ee4a9bb5c5718b.tar.xz
linux-d078c6e4ea5e6a93d44d5815d0ee4a9bb5c5718b.zip
usb: host: ehci-sched: remove unnecessary braces
This patch removes unnecessary braces in single statement blocks at the same time as replaces the if statement with a ternary conditional. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
-rw-r--r--drivers/usb/host/ehci-sched.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
index 5e5d50b40d04..1dfe54f14737 100644
--- a/drivers/usb/host/ehci-sched.c
+++ b/drivers/usb/host/ehci-sched.c
@@ -1060,11 +1060,7 @@ iso_stream_init(
epnum = usb_pipeendpoint(urb->pipe);
is_input = usb_pipein(urb->pipe) ? USB_DIR_IN : 0;
maxp = usb_endpoint_maxp(&urb->ep->desc);
- if (is_input) {
- buf1 = (1 << 11);
- } else {
- buf1 = 0;
- }
+ buf1 = is_input ? 1 << 11 : 0;
/* knows about ITD vs SITD */
if (dev->speed == USB_SPEED_HIGH) {