diff options
author | Brian Norris <briannorris@chromium.org> | 2017-05-12 09:42:06 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-05-19 09:01:58 +0300 |
commit | 7ade530e7384d3ee7b3919c1e7cf436c25631238 (patch) | |
tree | 27337a063b67822fb3e34d9e6e139b09bced40eb /drivers/net/wireless/marvell/mwifiex/11h.c | |
parent | 7170862738dc129d98f8ea99f28b2d0d133365eb (diff) | |
download | talos-obmc-linux-7ade530e7384d3ee7b3919c1e7cf436c25631238.tar.gz talos-obmc-linux-7ade530e7384d3ee7b3919c1e7cf436c25631238.zip |
mwifiex: 11h: drop unnecessary check for '!priv'
These pointers are retrieved via container_of(). There's no way they are
NULL.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/11h.c')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/11h.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/11h.c b/drivers/net/wireless/marvell/mwifiex/11h.c index 366eb4991a7d..238accfe4f41 100644 --- a/drivers/net/wireless/marvell/mwifiex/11h.c +++ b/drivers/net/wireless/marvell/mwifiex/11h.c @@ -128,9 +128,6 @@ void mwifiex_dfs_cac_work_queue(struct work_struct *work) container_of(delayed_work, struct mwifiex_private, dfs_cac_work); - if (WARN_ON(!priv)) - return; - chandef = priv->dfs_chandef; if (priv->wdev.cac_started) { mwifiex_dbg(priv->adapter, MSG, @@ -289,9 +286,6 @@ void mwifiex_dfs_chan_sw_work_queue(struct work_struct *work) container_of(delayed_work, struct mwifiex_private, dfs_chan_sw_work); - if (WARN_ON(!priv)) - return; - bss_cfg = &priv->bss_cfg; if (!bss_cfg->beacon_period) { mwifiex_dbg(priv->adapter, ERROR, |