Skip to contentSkip to conversation

resource: Remove unneeded semicolon

PATCH In review Chengyang Fan 2 participants 2 messages Jan 18, 2021 – Jan 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 resource: Remove unneeded semicolon

Remove a superfluous semicolon after function definition.

---
 include/linux/ioport.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/ioport.h +1 -1
index fe48b7840665..803c10f6a6df 100644
@@ -337,7 +337,7 @@ static inline void irqresource_disabled(struct resource *res, u32 irq)
 #ifdef CONFIG_IO_STRICT_DEVMEM
 void revoke_devmem(struct resource *res);
 #else
-static inline void revoke_devmem(struct resource *res) { };
+static inline void revoke_devmem(struct resource *res) { }
 #endif
 
 #endif /* __ASSEMBLY__ */
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Chengyang Fan

Remove a superfluous semicolon after function definition.

---
  include/linux/ioport.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/ioport.h +0 -0
index fe48b7840665..803c10f6a6df 100644

include/linux/ioport.h static inline void irqresource_disabled(struct resource *res, u32 irq) · line 343

Quoted 8 lines
include/linux/ioport.h +1 -1
@@ -337,7 +337,7 @@ static inline void irqresource_disabled(struct resource *res, u32 irq)
  #ifdef CONFIG_IO_STRICT_DEVMEM
  void revoke_devmem(struct resource *res);
  #else
-static inline void revoke_devmem(struct resource *res) { };
+static inline void revoke_devmem(struct resource *res) { }
  #endif
 
  #endif /* __ASSEMBLY__ */

The patch is fine AFAICS, so

but I'm not sure why it has been sent to me.

It would be better to send it to Greg instead.

Thanks!