Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] NFSD: Clean up errors in lockd.c
@ 2023-10-13  5:55 chenguohua
  0 siblings, 0 replies; only message in thread
From: chenguohua @ 2023-10-13  5:55 UTC (permalink / raw)
  To: chuck.lever, jlayton, neilb, kolga, Dai.Ngo, tom; +Cc: linux-kernel, linux-nfs

Fix the following errors reported by checkpatch:

ERROR: space required after that ',' (ctx:VxV)
ERROR: code indent should use tabs where possible

Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
 fs/nfsd/lockd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfsd/lockd.c b/fs/nfsd/lockd.c
index 46a7f9b813e5..acfed22822fa 100644
--- a/fs/nfsd/lockd.c
+++ b/fs/nfsd/lockd.c
@@ -33,7 +33,7 @@ nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp,
 	struct svc_fh	fh;
 
 	/* must initialize before using! but maxsize doesn't matter */
-	fh_init(&fh,0);
+	fh_init(&fh, 0);
 	fh.fh_handle.fh_size = f->size;
 	memcpy(&fh.fh_handle.fh_raw, f->data, f->size);
 	fh.fh_export = NULL;
@@ -42,7 +42,7 @@ nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp,
 	access |= NFSD_MAY_LOCK;
 	nfserr = nfsd_open(rqstp, &fh, S_IFREG, access, filp);
 	fh_put(&fh);
- 	/* We return nlm error codes as nlm doesn't know
+	/* We return nlm error codes as nlm doesn't know
 	 * about nfsd, but nfsd does know about nlm..
 	 */
 	switch (nfserr) {
-- 
2.17.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-13  5:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13  5:55 [PATCH] NFSD: Clean up errors in lockd.c chenguohua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox