summaryrefslogtreecommitdiff
path: root/net/wireless/wext-compat.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-03-27 21:35:45 +0300
committerJohannes Berg <johannes.berg@intel.com>2019-04-26 14:02:11 +0300
commit5e280420916f9483ce7b483ccc378f3c7b5929ab (patch)
tree0cbf4c2d2835c27225638d039e73740420961480 /net/wireless/wext-compat.c
parent5dc8cdce1d722c733f8c7af14c5fb595cfedbfa8 (diff)
downloadlinux-5e280420916f9483ce7b483ccc378f3c7b5929ab.tar.xz
cfg80211: remove redundant zero check on variable 'changed'
The zero check on variable changed is redundant as it must be between 1 and 3 at the end of the proceeding if statement block. Remove the redundant check. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/wext-compat.c')
-rw-r--r--net/wireless/wext-compat.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c
index d522787c7354..46e4d69db845 100644
--- a/net/wireless/wext-compat.c
+++ b/net/wireless/wext-compat.c
@@ -353,9 +353,6 @@ static int cfg80211_wext_siwretry(struct net_device *dev,
changed |= WIPHY_PARAM_RETRY_SHORT;
}
- if (!changed)
- return 0;
-
err = rdev_set_wiphy_params(rdev, changed);
if (err) {
wdev->wiphy->retry_short = oshort;