mac80211: Remove redundant assertion
authorAditya Pakki <pakki001@umn.edu>
Sun, 15 Dec 2019 15:23:48 +0000 (09:23 -0600)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 16 Dec 2019 09:58:34 +0000 (10:58 +0100)
commit1ee7826ab68f7e9fa1a01533983acf6a6f62e297
tree09d67338538e1e7d6c8684493535ef61742e9cdd
parent50ff477a8639fa1fbbeecb5a6f2f8b6c5557ecec
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>
net/mac80211/util.c