Skip to content

Commit afb8aae

Browse files
KaiLong Wangchucklever
authored andcommitted
nfsd: Clean up errors in nfs3proc.c
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 <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 03a0497 commit afb8aae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/nfsd/nfs3proc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ nfsd3_proc_read(struct svc_rqst *rqstp)
171171
* + 1 (xdr opaque byte count) = 26
172172
*/
173173
resp->count = argp->count;
174-
svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4);
174+
svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3) << 2) +
175+
resp->count + 4);
175176

176177
fh_copy(&resp->fh, &argp->fh);
177178
resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
@@ -194,7 +195,7 @@ nfsd3_proc_write(struct svc_rqst *rqstp)
194195
SVCFH_fmt(&argp->fh),
195196
argp->len,
196197
(unsigned long long) argp->offset,
197-
argp->stable? " stable" : "");
198+
argp->stable ? " stable" : "");
198199

199200
resp->status = nfserr_fbig;
200201
if (argp->offset > (u64)OFFSET_MAX ||

0 commit comments

Comments
 (0)