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:
346c265
)
iwlwifi: remove unneeded NULL check
author
Johannes Berg
<
[email protected]
>
Fri, 29 Jun 2012 12:24:12 +0000
(14:24 +0200)
committer
Johannes Berg
<
[email protected]
>
Tue, 3 Jul 2012 12:03:14 +0000
(14:03 +0200)
There's no need to check trans for non-null
here as it has already been checked in the
caller. This fixes an smatch warning that we
check after having dereferenced it.
Reviewed-by: Emmanuel Grumbach <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
drivers/net/wireless/iwlwifi/pcie/rx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/pcie/rx.c
b/drivers/net/wireless/iwlwifi/pcie/rx.c
index be143eb4aa4ff04a63969070736211a08e6a76aa..39a6ca1f009c39fdaf8c60775348f4790ede45dd 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/pcie/rx.c
+++ b/
drivers/net/wireless/iwlwifi/pcie/rx.c
@@
-879,9
+879,6
@@
static irqreturn_t iwl_isr(int irq, void *data)
lockdep_assert_held(&trans_pcie->irq_lock);
- if (!trans)
- return IRQ_NONE;
-
trace_iwlwifi_dev_irq(trans->dev);
/* Disable (but don't clear!) interrupts here to avoid