Tag: 2d513ef6c3fc9cb09225d0ff3fc7a31e76924913

Staging: lustre: lnet: Use list_first_entry_or_null

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(-) …

Continue reading