mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
wil6210: fix double definition of 'ctx'
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>
This commit is contained in:
parent
6f55007d0e
commit
76dfa4b771
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user