usb: host: ehci-sched: remove useless else branch
authorGeyslan G. Bem <geyslan@gmail.com>
Tue, 26 Jan 2016 01:45:15 +0000 (22:45 -0300)
committerGreg 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

index 11d5efdddae25762fbef68a257c946316ecd5661..8b3abdcca08f4bdd8069d46603913fbe83a54a69 100644 (file)
@@ -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;
                        }
                }
        }