projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f31a7e
)
wifi: mac80211: remove redundant unlikely() around IS_ERR()
author
Zhang Changzhong
<zhangchangzhong@huawei.com>
Sat, 24 Aug 2024 08:26:43 +0000
(16:26 +0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 27 Aug 2024 08:28:55 +0000
(10:28 +0200)
IS_ERR() already calls unlikely(), so unlikely() is redundant here.
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link:
https://patch.msgid.link/1724488003-45388-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_pathtbl.c
patch
|
blob
|
history
diff --git
a/net/mac80211/mesh_pathtbl.c
b/net/mac80211/mesh_pathtbl.c
index c0a5c75cddcb9f1c3f509b909e443ea0e74fb19d..30c0d89203afff0e1b55f147610d50c995f59cc8 100644
(file)
--- a/
net/mac80211/mesh_pathtbl.c
+++ b/
net/mac80211/mesh_pathtbl.c
@@
-580,7
+580,7
@@
void mesh_fast_tx_cache(struct ieee80211_sub_if_data *sdata,
prev = rhashtable_lookup_get_insert_fast(&cache->rht,
&entry->rhash,
fast_tx_rht_params);
- if (
unlikely(IS_ERR(prev)
)) {
+ if (
IS_ERR(prev
)) {
kfree(entry);
goto unlock_cache;
}