Skip to content

Commit

Permalink
usb: host: ehci-sched: remove useless else branch
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
geyslan authored and gregkh committed Feb 3, 2016
1 parent ee90647 commit 2fee2fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/usb/host/ehci-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 2fee2fe

Please sign in to comment.