]> asedeno.scripts.mit.edu Git - linux.git/commit
nfsd: drop useless LIST_HEAD
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 23 Dec 2018 08:56:56 +0000 (09:56 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 28 Dec 2018 01:59:50 +0000 (20:59 -0500)
commit8a68d3da50b952232bbb39f7582a9050c40a0d78
tree5fa4fed2ab038954a5132faa5ddf3d4e76ba16de
parentb8eee0e90f9797b747113638bc75e739b192ad38
nfsd: drop useless LIST_HEAD

Drop LIST_HEAD where the variable it declares is never used.

This was introduced in c5c707f96fc9a ("nfsd: implement pNFS
layout recalls"), but was not used even in that commit.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier x;
@@
- LIST_HEAD(x);
  ... when != x
// </smpl>

Fixes: c5c707f96fc9a ("nfsd: implement pNFS layout recalls")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4layouts.c