Staging: most: Use list_first_entry instead of list_entry
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 6 Mar 2016 15:36:47 +0000 (21:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2016 03:26:05 +0000 (19:26 -0800)
commitd93f27b732062bbd7f93275613fc3f4081cda381
treef54ab5f6ef7cb2efd8738d43aa65538357e56acd
parent7b50908a5eee25125023e22c5fed93f659bddd00
Staging: most: Use list_first_entry instead of list_entry

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 <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-dim2/dim2_hdm.c