From: Aditya Pakki Date: Sun, 15 Dec 2019 15:23:48 +0000 (-0600) Subject: mac80211: Remove redundant assertion X-Git-Tag: v5.10.7~2946^2~425^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ee7826ab68f7e9fa1a01533983acf6a6f62e297;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20191215152348.20912-1-pakki001@umn.edu Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 32a7a53..780df3e 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;