Tag: d93f27b732062bbd7f93275613fc3f4081cda381

Staging: most: Use list_first_entry instead of list_entry

Author: Bhumika Goyal <bhumirks@gmail.com> This patch replaces list_entry with list_first_entry as it makes the code more clear. Done using coccinelle: @@ expression e; @@ ( – list_entry(e->next, + list_first_entry(e, …) | – list_entry(e->prev, + list_last_entry(e, …) ) Signed-off-by: Bhumika Goyal Signed-off-by: Greg Kroah-Hartman — drivers/staging/most/hdm-dim2/dim2_hdm.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-) …

Continue reading