aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bna/bnad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bna/bnad.c b/drivers/net/bna/bnad.c
index 8158fb93cb4..e380c0e88f4 100644
--- a/drivers/net/bna/bnad.c
+++ b/drivers/net/bna/bnad.c
@@ -867,11 +867,12 @@ bnad_cb_tx_resume(struct bnad *bnad, struct bna_tcb *tcb)
static void
bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb)
{
- struct bnad_unmap_q *unmap_q = tcb->unmap_q;
+ struct bnad_unmap_q *unmap_q;
if (!tcb || (!tcb->unmap_q))
return;
+ unmap_q = tcb->unmap_q;
if (!unmap_q->unmap_array)
return;