Re: [PATCH net-next v2] et131x: Remove NULL check of list_entry()

From
Jakub Kicinski <kuba@kernel.org>
Date
2024-08-26 20:27:27
Also in
lkml
Reply to
Yuesong Li, 2024-08-23
On Fri, 23 Aug 2024 09:27:37 +0800 Yuesong Li wrote:
list_entry() will never return a NULL pointer, thus remove the
check.
Unclear to me whether the intent of this code is to check for empty
list or this is defensive programming. Let's leave it be.
-- 
pw-bot: reject
Thread (3 messages) 3 messages, 3 authors, last reply 2024-08-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help