]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wil6210: fix double definition of 'ctx'
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Mon, 14 Jul 2014 06:49:39 +0000 (09:49 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Jul 2014 17:45:23 +0000 (13:45 -0400)
Variable 'ctx' declarad again in the inner loop. Should use
one from outer loop instead.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/txrx.c

index af4b93e4beb5e80e9412785d60a17ebbe95e790a..d3467943d39db60972bae0ce0413b4e5eaa04585 100644 (file)
@@ -1108,8 +1108,10 @@ int wil_tx_complete(struct wil6210_priv *wil, int ringid)
                while (vring->swtail != new_swtail) {
                        struct vring_tx_desc dd, *d = &dd;
                        u16 dmalen;
-                       struct wil_ctx *ctx = &vring->ctx[vring->swtail];
-                       struct sk_buff *skb = ctx->skb;
+                       struct sk_buff *skb;
+
+                       ctx = &vring->ctx[vring->swtail];
+                       skb = ctx->skb;
                        _d = &vring->va[vring->swtail].tx;
 
                        *d = *_d;