From 64195fc89fa542726c5a45a09f89ed8cc14d033b Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Tue, 10 Jan 2023 16:54:23 -0500 Subject: [PATCH] Cleanup: Remove unneeded semicolons The Linux 5.16.14 kernel's coccicheck caught this. The semantic patch that caught it was: ./scripts/coccinelle/misc/semicolon.cocci Reviewed-by: Brian Behlendorf Signed-off-by: Richard Yao Closes #14372 --- module/icp/core/kcf_callprov.c | 2 +- module/lua/lgc.c | 2 +- module/lua/lgc.h | 2 +- module/lua/lvm.c | 2 +- module/zfs/zfs_fuid.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/icp/core/kcf_callprov.c b/module/icp/core/kcf_callprov.c index f06b3cd00b..b1822dd5b8 100644 --- a/module/icp/core/kcf_callprov.c +++ b/module/icp/core/kcf_callprov.c @@ -63,7 +63,7 @@ is_in_triedlist(kcf_provider_desc_t *pd, kcf_prov_tried_t *triedl) if (triedl->pt_pd == pd) return (B_TRUE); triedl = triedl->pt_next; - }; + } return (B_FALSE); } diff --git a/module/lua/lgc.c b/module/lua/lgc.c index 0ec18ea483..ccb8c019b9 100644 --- a/module/lua/lgc.c +++ b/module/lua/lgc.c @@ -1056,7 +1056,7 @@ static lu_mem singlestep (lua_State *L) { lu_mem work; int sw; g->gcstate = GCSatomic; /* finish mark phase */ - g->GCestimate = g->GCmemtrav; /* save what was counted */; + g->GCestimate = g->GCmemtrav; /* save what was counted */ work = atomic(L); /* add what was traversed by 'atomic' */ g->GCestimate += work; /* estimate of total memory traversed */ sw = entersweep(L); diff --git a/module/lua/lgc.h b/module/lua/lgc.h index 84bb1cdf99..02f17fe123 100644 --- a/module/lua/lgc.h +++ b/module/lua/lgc.h @@ -120,7 +120,7 @@ #define luaC_condGC(L,c) \ - {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} + {if (G(L)->GCdebt > 0) {c;} condchangemem(L);} #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) diff --git a/module/lua/lvm.c b/module/lua/lvm.c index b554573253..53b9884f0a 100644 --- a/module/lua/lvm.c +++ b/module/lua/lvm.c @@ -568,7 +568,7 @@ void luaV_finishOp (lua_State *L) { #define donextjump(ci) { i = *ci->u.l.savedpc; dojump(ci, i, 1); } -#define Protect(x) { {x;}; base = ci->u.l.base; } +#define Protect(x) { {x;} base = ci->u.l.base; } #define checkGC(L,c) \ Protect( luaC_condGC(L,{L->top = (c); /* limit of live values */ \ diff --git a/module/zfs/zfs_fuid.c b/module/zfs/zfs_fuid.c index 35466c486a..e2e066b0e9 100644 --- a/module/zfs/zfs_fuid.c +++ b/module/zfs/zfs_fuid.c @@ -622,7 +622,7 @@ zfs_fuid_create(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr, rid = FUID_RID(fuidp->z_fuid_group); idx = FUID_INDEX(fuidp->z_fuid_group); break; - }; + } domain = fuidp->z_domain_table[idx - 1]; } else { if (type == ZFS_OWNER || type == ZFS_ACE_USER)