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

Commit 71708627 authored by Brian Norris's avatar Brian Norris Committed by Kalle Valo
Browse files

mwifiex: remove redundant 'adapter' check in mwifiex_adapter_cleanup



We're using 'adapter' right before calling this. Stop being
unnecessarily paranoid.

Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent bc69ca39
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -409,11 +409,6 @@ static void mwifiex_free_lock_list(struct mwifiex_adapter *adapter)
static void
mwifiex_adapter_cleanup(struct mwifiex_adapter *adapter)
{
	if (!adapter) {
		pr_err("%s: adapter is NULL\n", __func__);
		return;
	}

	del_timer(&adapter->wakeup_timer);
	mwifiex_cancel_all_pending_cmd(adapter);
	wake_up_interruptible(&adapter->cmd_wait_q.wait);