diff options
author | David S. Miller <davem@davemloft.net> | 2012-09-27 18:35:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-27 18:35:47 -0400 |
commit | f54ba7798848ce1385a71b36a2c997422c82220a (patch) | |
tree | b93f6a9e0d456602898817b8333a430b0e5929a8 /net/sched/sch_drr.c | |
parent | e905ed57baa82e15ce9c158a8f1e81f171042504 (diff) |
pkt_sched: Fix warning false positives.
GCC refuses to recognize that all error control flows do in fact
set err to something.
Add an explicit initialization to shut it up.
net/sched/sch_drr.c: In function ‘drr_enqueue’:
net/sched/sch_drr.c:359:11: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
net/sched/sch_qfq.c: In function ‘qfq_enqueue’:
net/sched/sch_qfq.c:885:11: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_drr.c')
-rw-r--r-- | net/sched/sch_drr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c index 9ce0b4fe23ff..71e50c80315f 100644 --- a/net/sched/sch_drr.c +++ b/net/sched/sch_drr.c | |||
@@ -352,7 +352,7 @@ static int drr_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
352 | { | 352 | { |
353 | struct drr_sched *q = qdisc_priv(sch); | 353 | struct drr_sched *q = qdisc_priv(sch); |
354 | struct drr_class *cl; | 354 | struct drr_class *cl; |
355 | int err; | 355 | int err = 0; |
356 | 356 | ||
357 | cl = drr_classify(skb, sch, &err); | 357 | cl = drr_classify(skb, sch, &err); |
358 | if (cl == NULL) { | 358 | if (cl == NULL) { |