NFSD: Fix inconsistent indenting
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 2 Dec 2021 08:35:42 +0000 (16:35 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 13 Dec 2021 18:42:59 +0000 (13:42 -0500)
Eliminate the follow smatch warning:

fs/nfsd/nfs4xdr.c:4766 nfsd4_encode_read_plus_hole() warn: inconsistent
indenting.

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/nfs4xdr.c

index 5a93a5d..4a75a27 100644 (file)
@@ -4804,8 +4804,8 @@ nfsd4_encode_read_plus_hole(struct nfsd4_compoundres *resp,
                return nfserr_resource;
 
        *p++ = htonl(NFS4_CONTENT_HOLE);
-        p   = xdr_encode_hyper(p, read->rd_offset);
-        p   = xdr_encode_hyper(p, count);
+       p = xdr_encode_hyper(p, read->rd_offset);
+       p = xdr_encode_hyper(p, count);
 
        *eof = (read->rd_offset + count) >= f_size;
        *maxcount = min_t(unsigned long, count, *maxcount);