Commit 5e280420 authored by Colin Ian King's avatar Colin Ian King Committed by Johannes Berg

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 5dc8cdce
...@@ -353,9 +353,6 @@ static int cfg80211_wext_siwretry(struct net_device *dev, ...@@ -353,9 +353,6 @@ static int cfg80211_wext_siwretry(struct net_device *dev,
changed |= WIPHY_PARAM_RETRY_SHORT; changed |= WIPHY_PARAM_RETRY_SHORT;
} }
if (!changed)
return 0;
err = rdev_set_wiphy_params(rdev, changed); err = rdev_set_wiphy_params(rdev, changed);
if (err) { if (err) {
wdev->wiphy->retry_short = oshort; wdev->wiphy->retry_short = oshort;
......
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