Skip to contentSkip to conversation

nfsd: Clean up errors in nfs4idmap.c

PATCH New [email protected] 1 participant 1 message Oct 13, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd: Clean up errors in nfs4idmap.c

Fix the following errors reported by checkpatch:

ERROR: spaces required around that '=' (ctx:VxW)
ERROR: code indent should use tabs where possible
ERROR: return is not a function, parentheses are not required

---
 fs/nfsd/nfs4idmap.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
fs/nfsd/nfs4idmap.c +4 -4
index 7a806ac13e31..4e65538a58f0 100644
@@ -212,7 +212,7 @@ idtoname_parse(struct cache_detail *cd, char *buf, int buflen)
 
 	if (buf[buflen - 1] != '\n')
 		return (-EINVAL);
-	buf[buflen - 1]= '\0';
+	buf[buflen - 1] = '\0';
 
 	buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL);
 	if (buf1 == NULL)
@@ -313,7 +313,7 @@ static void
 nametoid_request(struct cache_detail *cd, struct cache_head *ch, char **bpp,
     int *blen)
 {
- 	struct ent *ent = container_of(ch, struct ent, h);
+	struct ent *ent = container_of(ch, struct ent, h);
 
 	qword_add(bpp, blen, ent->authname);
 	qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user");
@@ -381,7 +381,7 @@ nametoid_parse(struct cache_detail *cd, char *buf, int buflen)
 
 	if (buf[buflen - 1] != '\n')
 		return (-EINVAL);
-	buf[buflen - 1]= '\0';
+	buf[buflen - 1] = '\0';
 
 	buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL);
 	if (buf1 == NULL)
@@ -431,7 +431,7 @@ nametoid_parse(struct cache_detail *cd, char *buf, int buflen)
 	error = 0;
 out:
 	kfree(buf1);
-	return (error);
+	return error;
 }
 
 
Signature · 1 line
2.17.1