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

ERROR: spaces required around that '=' (ctx:VxW)

ERROR: space required after that ',' (ctx:VxO)
ERROR: space required before that '~' (ctx:OxV)
Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c

index 40018cc914a49f967b94efdc531c9cb227b966bf..54ad16d6d92009c4e9ef2e313ebfd8ff89312671 100644 (file)
@@ -59,7 +59,7 @@
 
 #define NFSDDBG_FACILITY                NFSDDBG_PROC
 
-#define all_ones {{~0,~0},~0}
+#define all_ones {{ ~0, ~0}, ~0}
 static const stateid_t one_stateid = {
        .si_generation = ~0,
        .si_opaque = all_ones,
@@ -298,7 +298,7 @@ find_or_allocate_block(struct nfs4_lockowner *lo, struct knfsd_fh *fh,
 
        nbl = find_blocked_lock(lo, fh, nn);
        if (!nbl) {
-               nbl= kmalloc(sizeof(*nbl), GFP_KERNEL);
+               nbl = kmalloc(sizeof(*nbl), GFP_KERNEL);
                if (nbl) {
                        INIT_LIST_HEAD(&nbl->nbl_list);
                        INIT_LIST_HEAD(&nbl->nbl_lru);