Commit 9d127fbd authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[PKT_SCHED] dsmark: checkpatch warning cleanup

Get rid of all style things checkpatch warns about, indentation and
whitespace.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c30719f
...@@ -147,7 +147,7 @@ static int dsmark_delete(struct Qdisc *sch, unsigned long arg) ...@@ -147,7 +147,7 @@ static int dsmark_delete(struct Qdisc *sch, unsigned long arg)
return 0; return 0;
} }
static void dsmark_walk(struct Qdisc *sch,struct qdisc_walker *walker) static void dsmark_walk(struct Qdisc *sch, struct qdisc_walker *walker)
{ {
struct dsmark_qdisc_data *p = qdisc_priv(sch); struct dsmark_qdisc_data *p = qdisc_priv(sch);
int i; int i;
...@@ -171,7 +171,8 @@ ignore: ...@@ -171,7 +171,8 @@ ignore:
} }
} }
static inline struct tcf_proto **dsmark_find_tcf(struct Qdisc *sch,unsigned long cl) static inline struct tcf_proto **dsmark_find_tcf(struct Qdisc *sch,
unsigned long cl)
{ {
struct dsmark_qdisc_data *p = qdisc_priv(sch); struct dsmark_qdisc_data *p = qdisc_priv(sch);
return &p->filter_list; return &p->filter_list;
...@@ -179,7 +180,7 @@ static inline struct tcf_proto **dsmark_find_tcf(struct Qdisc *sch,unsigned long ...@@ -179,7 +180,7 @@ static inline struct tcf_proto **dsmark_find_tcf(struct Qdisc *sch,unsigned long
/* --------------------------- Qdisc operations ---------------------------- */ /* --------------------------- Qdisc operations ---------------------------- */
static int dsmark_enqueue(struct sk_buff *skb,struct Qdisc *sch) static int dsmark_enqueue(struct sk_buff *skb, struct Qdisc *sch)
{ {
struct dsmark_qdisc_data *p = qdisc_priv(sch); struct dsmark_qdisc_data *p = qdisc_priv(sch);
int err; int err;
...@@ -238,7 +239,7 @@ static int dsmark_enqueue(struct sk_buff *skb,struct Qdisc *sch) ...@@ -238,7 +239,7 @@ static int dsmark_enqueue(struct sk_buff *skb,struct Qdisc *sch)
} }
} }
err = p->q->enqueue(skb,p->q); err = p->q->enqueue(skb, p->q);
if (err != NET_XMIT_SUCCESS) { if (err != NET_XMIT_SUCCESS) {
sch->qstats.drops++; sch->qstats.drops++;
return err; return err;
...@@ -289,8 +290,8 @@ static struct sk_buff *dsmark_dequeue(struct Qdisc *sch) ...@@ -289,8 +290,8 @@ static struct sk_buff *dsmark_dequeue(struct Qdisc *sch)
* and don't need yet another qdisc as a bypass. * and don't need yet another qdisc as a bypass.
*/ */
if (p->mask[index] != 0xff || p->value[index]) if (p->mask[index] != 0xff || p->value[index])
printk(KERN_WARNING "dsmark_dequeue: " printk(KERN_WARNING
"unsupported protocol %d\n", "dsmark_dequeue: unsupported protocol %d\n",
ntohs(skb->protocol)); ntohs(skb->protocol));
break; break;
} }
...@@ -298,7 +299,7 @@ static struct sk_buff *dsmark_dequeue(struct Qdisc *sch) ...@@ -298,7 +299,7 @@ static struct sk_buff *dsmark_dequeue(struct Qdisc *sch)
return skb; return skb;
} }
static int dsmark_requeue(struct sk_buff *skb,struct Qdisc *sch) static int dsmark_requeue(struct sk_buff *skb, struct Qdisc *sch)
{ {
struct dsmark_qdisc_data *p = qdisc_priv(sch); struct dsmark_qdisc_data *p = qdisc_priv(sch);
int err; int err;
...@@ -419,8 +420,8 @@ static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl, ...@@ -419,8 +420,8 @@ static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl,
tcm->tcm_info = p->q->handle; tcm->tcm_info = p->q->handle;
opts = RTA_NEST(skb, TCA_OPTIONS); opts = RTA_NEST(skb, TCA_OPTIONS);
RTA_PUT_U8(skb,TCA_DSMARK_MASK, p->mask[cl-1]); RTA_PUT_U8(skb, TCA_DSMARK_MASK, p->mask[cl-1]);
RTA_PUT_U8(skb,TCA_DSMARK_VALUE, p->value[cl-1]); RTA_PUT_U8(skb, TCA_DSMARK_VALUE, p->value[cl-1]);
return RTA_NEST_END(skb, opts); return RTA_NEST_END(skb, opts);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment