rt2x00: Remove useless NULL check
Since tx_info->control.vif was already accessed before it cant't be NULL here. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
87443e875c
commit
c262e08b79
@@ -221,8 +221,7 @@ static void rt2x00queue_create_tx_descriptor_seq(struct queue_entry *entry,
|
|||||||
struct rt2x00_intf *intf = vif_to_intf(tx_info->control.vif);
|
struct rt2x00_intf *intf = vif_to_intf(tx_info->control.vif);
|
||||||
unsigned long irqflags;
|
unsigned long irqflags;
|
||||||
|
|
||||||
if (!(tx_info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ) ||
|
if (!(tx_info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ))
|
||||||
unlikely(!tx_info->control.vif))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user