]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
pkt_sched: Annotate uninitialized var in sfq_enqueue()
authorJarek Poplawski <jarkao2@gmail.com>
Mon, 22 Dec 2008 04:14:48 +0000 (20:14 -0800)
committerDavid 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

index ab8cfee3c9ced13f5008661d2ad2044f764ada46..f3965df00559d970e4b46d871014ac9e08c8c5de 100644 (file)
@@ -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) {