projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50ff477
)
mac80211: Remove redundant assertion
author
Aditya Pakki
<pakki001@umn.edu>
Sun, 15 Dec 2019 15:23:48 +0000
(09:23 -0600)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 16 Dec 2019 09:58:34 +0000
(10:58 +0100)
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
patch
|
blob
|
history
diff --git
a/net/mac80211/util.c
b/net/mac80211/util.c
index 32a7a53833c01d1ea760646440f54009ae9c4544..780df3e9092ef9e816aaacd64396f47f9619dbfd 100644
(file)
--- 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;