From: Rickard Strandqvist Date: Sat, 10 Jan 2015 17:02:42 +0000 (+0100) Subject: lockd: xdr: Remove unused function X-Git-Tag: v4.0-rc1~105^2~30 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4cb7208a4105a74581ccd4541af75cfd772e99fb;p=karo-tx-linux.git 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 Signed-off-by: J. Bruce Fields --- 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 */