From: Zhao, Gang Date: Sat, 26 Apr 2014 01:43:41 +0000 (+0800) Subject: mac80211: remove unnecessary assignment X-Git-Tag: v4.13~7202^2~279^2^2~12^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b205786e38b156d1ccaccd4f4ee780345a69cfeb;p=mirror_ubuntu-bionic-kernel.git mac80211: remove unnecessary assignment P2P_DEVICE doesn't support ieee80211_bss_info_change_notify() for now, so it's not needed to set changed flags for P2P_DEVICE. Signed-off-by: Zhao, Gang Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/util.c b/net/mac80211/util.c index cafbae701d3d..ad058759e85e 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1671,13 +1671,10 @@ int ieee80211_reconfig(struct ieee80211_local *local) } break; case NL80211_IFTYPE_WDS: - break; case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_MONITOR: - /* ignore virtual */ - break; case NL80211_IFTYPE_P2P_DEVICE: - changed = BSS_CHANGED_IDLE; + /* nothing to do */ break; case NL80211_IFTYPE_UNSPECIFIED: case NUM_NL80211_IFTYPES: