Skip to content

Commit 8826fef

Browse files
committed
mac80211: remove pointless chanctx NULL check
If chanctx is derived as container_of() from a non-NULL pointer, it can't ever be NULL. Since we checked conf before, that's true here, so remove the useless NULL check. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 5140974 commit 8826fef

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/mac80211/cfg.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,10 +2961,6 @@ __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev,
29612961
}
29622962

29632963
chanctx = container_of(conf, struct ieee80211_chanctx, conf);
2964-
if (!chanctx) {
2965-
err = -EBUSY;
2966-
goto out;
2967-
}
29682964

29692965
ch_switch.timestamp = 0;
29702966
ch_switch.device_timestamp = 0;

0 commit comments

Comments
 (0)