mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
5dc8cdce1d
commit
5e28042091
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue