Author: Bhumika Goyal <bhumirks@gmail.com> This patch replaces list_empty and list_entry with list_first_entry_or_null. Done using coccinelle: @@ expression e1,e2; statement S; @@ – if(!list_empty(…)){ e2= – list_entry(e1.next, + list_first_entry_or_null(&e1, …); + if(e2){ … } Signed-off-by: Bhumika Goyal Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lnet/selftest/conrpc.c | 7 +++—- drivers/staging/lustre/lnet/selftest/framework.c | 7 +++—- 2 files changed, 6 insertions(+), 8 deletions(-) …
Privacy Overview
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.