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:
87443e8
)
rt2x00: Remove useless NULL check
author
Helmut Schaa
<
[email protected]
>
Thu, 3 Mar 2011 18:39:56 +0000
(19:39 +0100)
committer
John W. Linville
<
[email protected]
>
Fri, 4 Mar 2011 19:06:47 +0000
(14:06 -0500)
Since tx_info->control.vif was already accessed before it cant't be NULL
here.
Signed-off-by: Helmut Schaa <
[email protected]
>
Signed-off-by: Ivo van Doorn <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/rt2x00/rt2x00queue.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rt2x00/rt2x00queue.c
b/drivers/net/wireless/rt2x00/rt2x00queue.c
index bf9bba3562806f8ed9b52cae9985f2d515afd77c..b32ca31de7e8f8755538765b70d8e73d5cb977c4 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2x00queue.c
+++ b/
drivers/net/wireless/rt2x00/rt2x00queue.c
@@
-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);
unsigned long irqflags;
- if (!(tx_info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ) ||
- unlikely(!tx_info->control.vif))
+ if (!(tx_info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ))
return;
/*