aboutsummaryrefslogtreecommitdiffstats
path: root/module/lua
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2023-01-10 16:54:23 -0500
committerBrian Behlendorf <[email protected]>2023-01-12 16:00:30 -0800
commit64195fc89fa542726c5a45a09f89ed8cc14d033b (patch)
tree3c5128dd964955d96fa47258b7315312ebfa69fd /module/lua
parent3b2f9c1ec81a0c7059a81f5b4ae1e8f6296c090b (diff)
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 <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #14372
Diffstat (limited to 'module/lua')
-rw-r--r--module/lua/lgc.c2
-rw-r--r--module/lua/lgc.h2
-rw-r--r--module/lua/lvm.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/module/lua/lgc.c b/module/lua/lgc.c
index 0ec18ea48..ccb8c019b 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 84bb1cdf9..02f17fe12 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 b55457325..53b9884f0 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 */ \