Skip to content

Commit

Permalink
NFS: drop useless LIST_HEAD
Browse files Browse the repository at this point in the history
Drop LIST_HEAD where the variable it declares has never
been used.

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

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

Fixes: 0e20162 ("NFSv4.1 Use MDS auth flavor for data server connection")
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
JuliaLawall authored and Trond Myklebust committed Feb 20, 2019
1 parent b9779a5 commit 45bb8d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/nfs/nfs4client.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ static void
nfs4_shutdown_ds_clients(struct nfs_client *clp)
{
struct nfs4_ds_server *dss;
LIST_HEAD(shutdown_list);

while (!list_empty(&clp->cl_ds_clients)) {
dss = list_entry(clp->cl_ds_clients.next,
Expand Down

0 comments on commit 45bb8d8

Please sign in to comment.