]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
nfsd: remove unused function
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 15 Apr 2021 08:38:24 +0000 (16:38 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 15 Apr 2021 13:59:51 +0000 (09:59 -0400)
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>
fs/nfsd/nfs4state.c

index 7698172ac0c7619319393ed03c56b511f453d14e..6b8ad1a9ec347d6fcdcbd9dfbae36d83919e1c45 100644 (file)
@@ -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)