projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee90647
)
usb: host: ehci-sched: remove useless else branch
author
Geyslan G. Bem
<geyslan@gmail.com>
Tue, 26 Jan 2016 01:45:15 +0000
(22:45 -0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:44:05 +0000
(13:44 -0800)
This patch removes an useless else branch after a break, reducing one
indent block.
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>
drivers/usb/host/ehci-sched.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-sched.c
b/drivers/usb/host/ehci-sched.c
index 11d5efdddae25762fbef68a257c946316ecd5661..8b3abdcca08f4bdd8069d46603913fbe83a54a69 100644
(file)
--- a/
drivers/usb/host/ehci-sched.c
+++ b/
drivers/usb/host/ehci-sched.c
@@
-296,10
+296,9
@@
static void compute_tt_budget(u8 budget_table[EHCI_BANDWIDTH_SIZE],
if (x <= 125) {
budget_line[uf] = x;
break;
- } else {
- budget_line[uf] = 125;
- x -= 125;
}
+ budget_line[uf] = 125;
+ x -= 125;
}
}
}