aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2016-01-25 20:45:19 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-03 16:44:05 -0500
commitd078c6e4ea5e6a93d44d5815d0ee4a9bb5c5718b (patch)
tree6d7f3c0b115425948f765ab402c4d7b99eb8d5ad
parentee2a1d24b9b37686214aecfccccf611be6bc0144 (diff)
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>
-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(
1060 epnum = usb_pipeendpoint(urb->pipe); 1060 epnum = usb_pipeendpoint(urb->pipe);
1061 is_input = usb_pipein(urb->pipe) ? USB_DIR_IN : 0; 1061 is_input = usb_pipein(urb->pipe) ? USB_DIR_IN : 0;
1062 maxp = usb_endpoint_maxp(&urb->ep->desc); 1062 maxp = usb_endpoint_maxp(&urb->ep->desc);
1063 if (is_input) { 1063 buf1 = is_input ? 1 << 11 : 0;
1064 buf1 = (1 << 11);
1065 } else {
1066 buf1 = 0;
1067 }
1068 1064
1069 /* knows about ITD vs SITD */ 1065 /* knows about ITD vs SITD */
1070 if (dev->speed == USB_SPEED_HIGH) { 1066 if (dev->speed == USB_SPEED_HIGH) {