diff options
Diffstat (limited to 'drivers/net/bna')
-rw-r--r-- | drivers/net/bna/bnad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bna/bnad.c b/drivers/net/bna/bnad.c index 8158fb93cb4c..e380c0e88f4f 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) | |||
867 | static void | 867 | static void |
868 | bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb) | 868 | bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb) |
869 | { | 869 | { |
870 | struct bnad_unmap_q *unmap_q = tcb->unmap_q; | 870 | struct bnad_unmap_q *unmap_q; |
871 | 871 | ||
872 | if (!tcb || (!tcb->unmap_q)) | 872 | if (!tcb || (!tcb->unmap_q)) |
873 | return; | 873 | return; |
874 | 874 | ||
875 | unmap_q = tcb->unmap_q; | ||
875 | if (!unmap_q->unmap_array) | 876 | if (!unmap_q->unmap_array) |
876 | return; | 877 | return; |
877 | 878 | ||