diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-10 18:02:42 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-01-15 19:46:27 +0100 |
commit | 4cb7208a4105a74581ccd4541af75cfd772e99fb (patch) | |
tree | aa3665f659f92a56f4fecab8df333e47d626f037 /fs/lockd/xdr.c | |
parent | nfsd4: tweak rd_dircount accounting (diff) | |
download | linux-4cb7208a4105a74581ccd4541af75cfd772e99fb.tar.xz linux-4cb7208a4105a74581ccd4541af75cfd772e99fb.zip |
lockd: xdr: Remove unused function
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>
Diffstat (limited to 'fs/lockd/xdr.c')
-rw-r--r-- | fs/lockd/xdr.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/lockd/xdr.c b/fs/lockd/xdr.c index 9340e7e10ef6..5b651daad518 100644 --- a/fs/lockd/xdr.c +++ b/fs/lockd/xdr.c @@ -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 */ |