nfsd: Clean up errors in nfs4idmap.c
Subsystems (2)
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
Signed-off-by GuoHua Cheng <[email protected]>
--- fs/nfsd/nfs4idmap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
fs/nfsd/nfs4idmap.c +4 -4
@@ -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