diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-10 12:02:42 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-01-15 13:46:27 -0500 |
commit | 4cb7208a4105a74581ccd4541af75cfd772e99fb (patch) | |
tree | aa3665f659f92a56f4fecab8df333e47d626f037 /fs/lockd | |
parent | 0ec016e3e02fe07e7250b87daffab611f219e7f1 (diff) |
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')
-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) | |||
95 | return p + XDR_QUADLEN(NFS2_FHSIZE); | 95 | return p + XDR_QUADLEN(NFS2_FHSIZE); |
96 | } | 96 | } |
97 | 97 | ||
98 | static inline __be32 * | ||
99 | nlm_encode_fh(__be32 *p, struct nfs_fh *f) | ||
100 | { | ||
101 | *p++ = htonl(NFS2_FHSIZE); | ||
102 | memcpy(p, f->data, NFS2_FHSIZE); | ||
103 | return p + XDR_QUADLEN(NFS2_FHSIZE); | ||
104 | } | ||
105 | |||
106 | /* | 98 | /* |
107 | * Encode and decode owner handle | 99 | * Encode and decode owner handle |
108 | */ | 100 | */ |