mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
pkt_sched: fix warning in net/sched/sch_hfsc.c
this warning: net/sched/sch_hfsc.c: In function ‘hfsc_enqueue’: net/sched/sch_hfsc.c:1577: warning: ‘err’ may be used uninitialized in this function triggers because GCC does not recognize the (correct) error flow between hfsc_classify(), 'cl' and 'err'. Annotate it. Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ed72b9c6e0
commit
dc0a0011cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1563,7 +1563,7 @@ static int
|
|||
hfsc_enqueue(struct sk_buff *skb, struct Qdisc *sch)
|
||||
{
|
||||
struct hfsc_class *cl;
|
||||
int err;
|
||||
int uninitialized_var(err);
|
||||
|
||||
cl = hfsc_classify(skb, sch, &err);
|
||||
if (cl == NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue