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

Commit 99200a99 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by John W. Linville
Browse files

mwl8k: hw is never NULL in mwl8k_set_radio_preamble()

parent 55489b6e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1990,11 +1990,7 @@ static int mwl8k_cmd_radio_enable(struct ieee80211_hw *hw)
static int
mwl8k_set_radio_preamble(struct ieee80211_hw *hw, bool short_preamble)
{
	struct mwl8k_priv *priv;

	if (hw == NULL || hw->priv == NULL)
		return -EINVAL;
	priv = hw->priv;
	struct mwl8k_priv *priv = hw->priv;

	priv->radio_short_preamble = short_preamble;