mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
wifi: mac80211: remove redundant unlikely() around IS_ERR()
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>
This commit is contained in:
parent
0f31a7effa
commit
a0ee9dcce6
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ void mesh_fast_tx_cache(struct ieee80211_sub_if_data *sdata,
|
||||||
prev = rhashtable_lookup_get_insert_fast(&cache->rht,
|
prev = rhashtable_lookup_get_insert_fast(&cache->rht,
|
||||||
&entry->rhash,
|
&entry->rhash,
|
||||||
fast_tx_rht_params);
|
fast_tx_rht_params);
|
||||||
if (unlikely(IS_ERR(prev))) {
|
if (IS_ERR(prev)) {
|
||||||
kfree(entry);
|
kfree(entry);
|
||||||
goto unlock_cache;
|
goto unlock_cache;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue