Skip to contentSkip to conversation

powerpc/prom: remove unneeded semicolon

PATCH In review Jiapeng Chong 2 participants 2 messages Mar 11, 2021 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/prom: remove unneeded semicolon

Fix the following coccicheck warnings:

./arch/powerpc/kernel/prom_init.c:2986:2-3: Unneeded semicolon.

---
 arch/powerpc/kernel/prom_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/prom_init.c +1 -1
index ccf77b9..41ed7e3 100644
@@ -2983,7 +2983,7 @@ static void __init fixup_device_tree_efika_add_phy(void)
 				" 0x3 encode-int encode+"
 				" s\" interrupts\" property"
 			" finish-device");
-	};
+	}
 
 	/* Check for a PHY device node - if missing then create one and
 	 * give it's phandle to the ethernet node */
Signature · 1 line
1.8.3.1
#1 lore raw

Hi,

Le 11/03/2021 à 10:40, Jiapeng Chong a écrit :

Quoted 6 lines

Fix the following coccicheck warnings:

./arch/powerpc/kernel/prom_init.c:2986:2-3: Unneeded semicolon.

You already sent this patch in February and it is under Review, see https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=&submitter=81048&state=&q=&archive=&delegate=

Any reason for resending it ?

Quoted 18 lines
---
  arch/powerpc/kernel/prom_init.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/prom_init.c +1 -1
index ccf77b9..41ed7e3 100644
@@ -2983,7 +2983,7 @@ static void __init fixup_device_tree_efika_add_phy(void)
  				" 0x3 encode-int encode+"
  				" s\" interrupts\" property"
  			" finish-device");
-	};
+	}
 
  	/* Check for a PHY device node - if missing then create one and
  	 * give it's phandle to the ethernet node */