Skip to content

Commit

Permalink
iwlwifi: remove unneeded NULL check
Browse files Browse the repository at this point in the history
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 <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Jul 3, 2012
1 parent 346c265 commit bd408b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/iwlwifi/pcie/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd408b3

Please sign in to comment.