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

mwl8k: hw is never NULL in mwl8k_set_radio_preamble()

Signed-off-by: default avatarLennert Buytenhek <buytenh@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 55489b6e
...@@ -1990,11 +1990,7 @@ static int mwl8k_cmd_radio_enable(struct ieee80211_hw *hw) ...@@ -1990,11 +1990,7 @@ static int mwl8k_cmd_radio_enable(struct ieee80211_hw *hw)
static int static int
mwl8k_set_radio_preamble(struct ieee80211_hw *hw, bool short_preamble) mwl8k_set_radio_preamble(struct ieee80211_hw *hw, bool short_preamble)
{ {
struct mwl8k_priv *priv; struct mwl8k_priv *priv = hw->priv;
if (hw == NULL || hw->priv == NULL)
return -EINVAL;
priv = hw->priv;
priv->radio_short_preamble = short_preamble; priv->radio_short_preamble = short_preamble;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment