diff options
author | Aditya Pakki <pakki001@umn.edu> | 2019-12-15 09:23:48 -0600 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-12-16 10:58:34 +0100 |
commit | 1ee7826ab68f7e9fa1a01533983acf6a6f62e297 (patch) | |
tree | 09d67338538e1e7d6c8684493535ef61742e9cdd /net/mac80211/util.c | |
parent | 50ff477a8639fa1fbbeecb5a6f2f8b6c5557ecec (diff) |
mac80211: Remove redundant assertion
In wiphy_to_ieee80211_hw, the assertion to check if wiphy is NULL is
repeated in wiphy_priv. The patch removes the duplicated BUG_ON check.
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Link: https://lore.kernel.org/r/20191215152348.20912-1-pakki001@umn.edu
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 32a7a53833c0..780df3e9092e 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -39,7 +39,6 @@ const void *const mac80211_wiphy_privid = &mac80211_wiphy_privid; struct ieee80211_hw *wiphy_to_ieee80211_hw(struct wiphy *wiphy) { struct ieee80211_local *local; - BUG_ON(!wiphy); local = wiphy_priv(wiphy); return &local->hw; |