Skip to content

Commit

Permalink
lockd: xdr: Remove unused function
Browse files Browse the repository at this point in the history
Remove the function nlm_encode_fh() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
Rickard Strandqvist authored and J. Bruce Fields committed Jan 15, 2015
1 parent 0ec016e commit 4cb7208
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fs/lockd/xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ nlm_decode_fh(__be32 *p, struct nfs_fh *f)
return p + XDR_QUADLEN(NFS2_FHSIZE);
}

static inline __be32 *
nlm_encode_fh(__be32 *p, struct nfs_fh *f)
{
*p++ = htonl(NFS2_FHSIZE);
memcpy(p, f->data, NFS2_FHSIZE);
return p + XDR_QUADLEN(NFS2_FHSIZE);
}

/*
* Encode and decode owner handle
*/
Expand Down

0 comments on commit 4cb7208

Please sign in to comment.