Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rickard Strandqvist and committed by
J. Bruce Fields
4cb7208a 0ec016e3

-8
-8
fs/lockd/xdr.c
··· 95 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 99 * Encode and decode owner handle 108 100 */