diff options
author | Kaaira Gupta <kgupta@es.iitr.ac.in> | 2020-03-10 19:55:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-11 08:04:53 +0100 |
commit | 02a33f8e06f3be399aa547653715bf0e02b59e82 (patch) | |
tree | 85ac6144d5ec2f38e163b751e754510af1230542 /drivers/staging/wfx | |
parent | 3f716acc27109fdc52a17a85f67bb35c55a80c7d (diff) | |
download | linux-stable-02a33f8e06f3be399aa547653715bf0e02b59e82.tar.gz linux-stable-02a33f8e06f3be399aa547653715bf0e02b59e82.tar.bz2 linux-stable-02a33f8e06f3be399aa547653715bf0e02b59e82.zip |
staging: wfx: remove variable declaration
int ret is uneccessarily declared and 0 assigned to it. Return o
directly instead.
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Link: https://lore.kernel.org/r/20200310142509.25632-6-kgupta@es.iitr.ac.in
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx')
-rw-r--r-- | drivers/staging/wfx/sta.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 03d0f224ffdb..a60ac03fa73d 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -293,7 +293,6 @@ int wfx_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct wfx_dev *wdev = hw->priv; struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; int old_uapsd = wvif->uapsd_mask; - int ret = 0; WARN_ON(queue >= hw->queues); @@ -307,7 +306,7 @@ int wfx_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, wfx_update_pm(wvif); } mutex_unlock(&wdev->conf_mutex); - return ret; + return 0; } int wfx_set_rts_threshold(struct ieee80211_hw *hw, u32 value) |