Skip to content

Commit

Permalink
pkt_sched: Annotate uninitialized var in sfq_enqueue()
Browse files Browse the repository at this point in the history
Some gcc versions warn that ret may be used uninitialized in
sfq_enqueue(). It's a false positive, so let's annotate this.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Dec 22, 2008
1 parent bfb8cc3 commit 7f3ff4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/sch_sfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ sfq_enqueue(struct sk_buff *skb, struct Qdisc *sch)
struct sfq_sched_data *q = qdisc_priv(sch);
unsigned int hash;
sfq_index x;
int ret;
int uninitialized_var(ret);

hash = sfq_classify(skb, sch, &ret);
if (hash == 0) {
Expand Down

0 comments on commit 7f3ff4f

Please sign in to comment.