]> git.hungrycats.org Git - linux/commitdiff
openrisc: drop unneeded semicolon
authorJulia Lawall <Julia.Lawall@inria.fr>
Sat, 1 Aug 2026 19:09:50 +0000 (21:09 +0200)
committerStafford Horne <shorne@gmail.com>
Sat, 15 Aug 2026 06:30:13 +0000 (07:30 +0100)
When a function-like macro expands to an expression, that expression
doesn't need a semicolon after it.  All uses have been verified to
have their own semicolons.

This was found using the following Coccinelle semantic patch:

@r@
identifier i : script:ocaml() { String.lowercase_ascii i = i };
expression e;
@@

*#define i(...) e;

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/mm/tlb.c

index 3115f2e4f864f8ff78b1fefafa408232effcae98..2ee00bf301a4506766dbe08eb351de62a7fc4469 100644 (file)
@@ -74,11 +74,11 @@ void local_flush_tlb_all(void)
 
 #define flush_dtlb_page_eir(addr) mtspr(SPR_DTLBEIR, addr)
 #define flush_dtlb_page_no_eir(addr) \
-       mtspr_off(SPR_DTLBMR_BASE(0), DTLB_OFFSET(addr), 0);
+       mtspr_off(SPR_DTLBMR_BASE(0), DTLB_OFFSET(addr), 0)
 
 #define flush_itlb_page_eir(addr) mtspr(SPR_ITLBEIR, addr)
 #define flush_itlb_page_no_eir(addr) \
-       mtspr_off(SPR_ITLBMR_BASE(0), ITLB_OFFSET(addr), 0);
+       mtspr_off(SPR_ITLBMR_BASE(0), ITLB_OFFSET(addr), 0)
 
 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long addr)
 {