projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfb8cc3
)
pkt_sched: Annotate uninitialized var in sfq_enqueue()
author
Jarek Poplawski
<jarkao2@gmail.com>
Mon, 22 Dec 2008 04:14:48 +0000
(20:14 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 22 Dec 2008 04:14:48 +0000
(20:14 -0800)
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>
net/sched/sch_sfq.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/sch_sfq.c
b/net/sched/sch_sfq.c
index ab8cfee3c9ced13f5008661d2ad2044f764ada46..f3965df00559d970e4b46d871014ac9e08c8c5de 100644
(file)
--- a/
net/sched/sch_sfq.c
+++ b/
net/sched/sch_sfq.c
@@
-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) {