]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sch_cake: fix a few style nits
authorToke Høiland-Jørgensen <toke@redhat.com>
Thu, 25 Jun 2020 20:12:09 +0000 (22:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 23:24:05 +0000 (16:24 -0700)
I spotted a few nits when comparing the in-tree version of sch_cake with
the out-of-tree one: A redundant error variable declaration shadowing an
outer declaration, and an indentation alignment issue. Fix both of these.

Fixes: 106d5dd474da ("sched: Add Common Applications Kept Enhanced (cake) qdisc")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_cake.c

index 094d6e652deb6835ed07afb1e234e4f0d22b001c..ca813697728eb795ff0fcd97c63cbe5d64c9f925 100644 (file)
@@ -2715,7 +2715,7 @@ static int cake_init(struct Qdisc *sch, struct nlattr *opt,
        qdisc_watchdog_init(&q->watchdog, sch);
 
        if (opt) {
-               int err = cake_change(sch, opt, extack);
+               err = cake_change(sch, opt, extack);
 
                if (err)
                        return err;
@@ -3032,7 +3032,7 @@ static int cake_dump_class_stats(struct Qdisc *sch, unsigned long cl,
                        PUT_STAT_S32(BLUE_TIMER_US,
                                     ktime_to_us(
                                             ktime_sub(now,
-                                                    flow->cvars.blue_timer)));
+                                                      flow->cvars.blue_timer)));
                }
                if (flow->cvars.dropping) {
                        PUT_STAT_S32(DROP_NEXT_US,