]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
lockd: xdr: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 10 Jan 2015 17:02:42 +0000 (18:02 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Jan 2015 18:46:27 +0000 (13:46 -0500)
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 <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/xdr.c

index 9340e7e10ef60b957bab1b710ef3087d235dd32f..5b651daad5183c8e7b31c75340bfce42f8ad28d7 100644 (file)
@@ -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
  */