diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-04-15 16:38:24 +0800 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2021-04-15 09:59:51 -0400 |
commit | 363f8dd5eecd6c67fe9840ef6065440f0ee7df3a (patch) | |
tree | a437c29736afecf8758482fd9ea06c07fba61944 /fs/nfsd | |
parent | 8727f78855b8d770b192949adbb1425092529e0f (diff) | |
download | linux-363f8dd5eecd6c67fe9840ef6065440f0ee7df3a.tar.bz2 |
nfsd: remove unused function
Fix the following clang warning:
fs/nfsd/nfs4state.c:6276:1: warning: unused function 'end_offset'
[-Wunused-function].
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 7698172ac0c7..6b8ad1a9ec34 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -6288,15 +6288,6 @@ out: return status; } -static inline u64 -end_offset(u64 start, u64 len) -{ - u64 end; - - end = start + len; - return end >= start ? end: NFS4_MAX_UINT64; -} - /* last octet in a range */ static inline u64 last_byte_offset(u64 start, u64 len) |