net_sched: add space around '>' and before '('
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 10 Dec 2013 12:55:32 +0000 (20:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 03:44:51 +0000 (22:44 -0500)
Spaces required around that '>' (ctx:VxV) and
before the open parenthesis '('.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_cbq.c
net/sched/sch_netem.c

index 7a42c81a19ebe55f0b6a137f89c55b46314f8cd7..d5a8a4b2454fa25a56a7b8637ed32dc615bb4edc 100644 (file)
@@ -1058,7 +1058,8 @@ static void cbq_normalize_quanta(struct cbq_sched_data *q, int prio)
                                cl->quantum = (cl->weight*cl->allot*q->nclasses[prio])/
                                        q->quanta[prio];
                        }
-                       if (cl->quantum <= 0 || cl->quantum>32*qdisc_dev(cl->qdisc)->mtu) {
+                       if (cl->quantum <= 0 ||
+                           cl->quantum > 32*qdisc_dev(cl->qdisc)->mtu) {
                                pr_warning("CBQ: class %08x has bad quantum==%ld, repaired.\n",
                                           cl->common.classid, cl->quantum);
                                cl->quantum = qdisc_dev(cl->qdisc)->mtu/2 + 1;
index bccd52b36e97be79d446e233dedc960fe65d5f16..f3befd6b4781bde74547f9b60b9b3733dba78bcd 100644 (file)
@@ -729,7 +729,7 @@ static int get_loss_clg(struct Qdisc *sch, const struct nlattr *attr)
        nla_for_each_nested(la, attr, rem) {
                u16 type = nla_type(la);
 
-               switch(type) {
+               switch (type) {
                case NETEM_LOSS_GI: {
                        const struct tc_netem_gimodel *gi = nla_data(la);