Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd408b33 authored by Johannes Berg's avatar Johannes Berg
Browse files

iwlwifi: remove unneeded NULL check



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: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 346c265a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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