projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f55007
)
wil6210: fix double definition of 'ctx'
author
Vladimir Kondratiev
<
[email protected]
>
Mon, 14 Jul 2014 06:49:39 +0000
(09:49 +0300)
committer
John W. Linville
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/wil6210/txrx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/wil6210/txrx.c
b/drivers/net/wireless/ath/wil6210/txrx.c
index af4b93e4beb5e80e9412785d60a17ebbe95e790a..d3467943d39db60972bae0ce0413b4e5eaa04585 100644
(file)
--- a/
drivers/net/wireless/ath/wil6210/txrx.c
+++ b/
drivers/net/wireless/ath/wil6210/txrx.c
@@
-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 = ⅆ
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;