mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: Remove useless check in mt7996_msdu_page_get_from_cache()
Get rid of useless null-pointer check in mt7996_msdu_page_get_from_cache
since we have already verfied the list is not empty.
Fixes: b1e58e137b616 ("wifi: mt76: mt7996: Introduce RRO MSDU callbacks")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Lorenzo Bianconi <[email protected]>
Link: https://patch.msgid.link/20251014-mt7996_msdu_page_get_from_cache-remove-null-ptr-check-v1-1-fbeb7881e192@kernel.org
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
c63db0fcad
commit
0aece3089a
+1
-2
@@ -1681,8 +1681,7 @@ mt7996_msdu_page_get_from_cache(struct mt7996_dev *dev)
|
||||
if (!list_empty(&dev->wed_rro.page_cache)) {
|
||||
p = list_first_entry(&dev->wed_rro.page_cache,
|
||||
struct mt7996_msdu_page, list);
|
||||
if (p)
|
||||
list_del(&p->list);
|
||||
list_del(&p->list);
|
||||
}
|
||||
|
||||
spin_unlock(&dev->wed_rro.lock);
|
||||
|
||||
Reference in New Issue
Block a user