Skip to contentSkip to conversation

gpio: virtio: remove unneeded semicolon

PATCH Applied Yang Li 3 participants 3 messages Nov 8, 2021 – Nov 15, 2021

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 gpio: virtio: remove unneeded semicolon

Eliminate the following coccicheck warning:
./drivers/gpio/gpio-virtio.c:437:2-3: Unneeded semicolon

---
 drivers/gpio/gpio-virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-virtio.c +1 -1
index aeec4bf..84f96b7 100644
@@ -434,7 +434,7 @@ static void virtio_gpio_event_vq(struct virtqueue *vq)
 		ret = generic_handle_domain_irq(vgpio->gc.irq.domain, gpio);
 		if (ret)
 			dev_err(dev, "failed to handle interrupt: %d\n", ret);
-	};
+	}
 }
 
 static void virtio_gpio_request_vq(struct virtqueue *vq)
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Yang Li

Eliminate the following coccicheck warning:
./drivers/gpio/gpio-virtio.c:437:2-3: Unneeded semicolon

---
 drivers/gpio/gpio-virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-virtio.c +0 -0
index aeec4bf..84f96b7 100644

drivers/gpio/gpio-virtio.c static void virtio_gpio_event_vq(struct virtqueue *vq) · line 440

Quoted 8 lines
drivers/gpio/gpio-virtio.c +1 -1
@@ -434,7 +434,7 @@ static void virtio_gpio_event_vq(struct virtqueue *vq)
 		ret = generic_handle_domain_irq(vgpio->gc.irq.domain, gpio);
 		if (ret)
 			dev_err(dev, "failed to handle interrupt: %d\n", ret);
-	};
+	}
 }
 
 static void virtio_gpio_request_vq(struct virtqueue *vq)
Signature · 1 line
viresh
#2 lore raw
In reply to Yang Li
Quoted 24 lines · Yang Li

Eliminate the following coccicheck warning:
./drivers/gpio/gpio-virtio.c:437:2-3: Unneeded semicolon

---
 drivers/gpio/gpio-virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-virtio.c +1 -2
index aeec4bf..84f96b7 100644
@@ -434,7 +434,7 @@ static void virtio_gpio_event_vq(struct virtqueue *vq)
                ret = generic_handle_domain_irq(vgpio->gc.irq.domain, gpio);
                if (ret)
                        dev_err(dev, "failed to handle interrupt: %d\n", ret);
-       };
+       }
 }
 
 static void virtio_gpio_request_vq(struct virtqueue *vq)
--
Quoted 2 lines

1.8.3.1

Queued for fixes, thanks!

Bart