nfsd: Clean up errors in nfs3proc.c
authorKaiLong Wang <wangkailong@jari.cn>
Thu, 28 Sep 2023 02:51:55 +0000 (10:51 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:39 +0000 (12:44 -0400)
Fix the following errors reported by checkpatch:

ERROR: need consistent spacing around '+' (ctx:WxV)
ERROR: spaces required around that '?' (ctx:VxW)

Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs3proc.c

index 268ef57751c48cec019224b2dc0225ebe1d78403..9571141701ffe9a2c140442749e594d8d4fb0c72 100644 (file)
@@ -171,7 +171,8 @@ nfsd3_proc_read(struct svc_rqst *rqstp)
         * + 1 (xdr opaque byte count) = 26
         */
        resp->count = argp->count;
-       svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4);
+       svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3) << 2) +
+                        resp->count + 4);
 
        fh_copy(&resp->fh, &argp->fh);
        resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
@@ -194,7 +195,7 @@ nfsd3_proc_write(struct svc_rqst *rqstp)
                                SVCFH_fmt(&argp->fh),
                                argp->len,
                                (unsigned long long) argp->offset,
-                               argp->stable? " stable" : "");
+                               argp->stable ? " stable" : "");
 
        resp->status = nfserr_fbig;
        if (argp->offset > (u64)OFFSET_MAX ||