staging: lustre: lnet: Use list_entry() rather than container_of()
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Sun, 28 Feb 2016 19:09:12 +0000 (14:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 03:38:34 +0000 (19:38 -0800)
commit31cf532a290932e226dfee80eca0c41bf2e36555
treebd6a3c4290e6c4565503822ed1fefae8b4cd8839
parent118164345dba84b9a9f27998a3194d5b7852fec5
staging: lustre: lnet: Use list_entry() rather than container_of()

Use list_entry() rather than container_of() for nodes of doubly linked
lists.
Semantic patch used:

@a exists@
identifier var;
struct list_head *ptr;
@@

  var =
- container_of
+ list_entry
  (ptr, ...);

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c