summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2020-04-05 19:14:10 +0200
committerMichael S. Tsirkin <mst@redhat.com>2020-06-02 08:45:13 +0200
commit0c35c67412f0ae9ebe1a87cb83bc9de8143438b7 (patch)
tree752eacec274855d95ecab63db1e4cc16751a9376
parentvirtio: add VIRTIO_RING_NO_LEGACY (diff)
downloadlinux-0c35c67412f0ae9ebe1a87cb83bc9de8143438b7.tar.xz
linux-0c35c67412f0ae9ebe1a87cb83bc9de8143438b7.zip
virtio-mmio: Delete an error message in vm_find_vqs()
The function “platform_get_irq” can log an error already. Thus omit a redundant message for the exception handling in the calling function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Link: https://lore.kernel.org/r/9e27bc4a-cfa1-7818-dc25-8ad308816b30@web.de Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--drivers/virtio/virtio_mmio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
index 97d5725fd9a2..9d16aaffca9d 100644
--- a/drivers/virtio/virtio_mmio.c
+++ b/drivers/virtio/virtio_mmio.c
@@ -466,10 +466,8 @@ static int vm_find_vqs(struct virtio_device *vdev, unsigned nvqs,
int irq = platform_get_irq(vm_dev->pdev, 0);
int i, err, queue_idx = 0;
- if (irq < 0) {
- dev_err(&vdev->dev, "Cannot get IRQ resource\n");
+ if (irq < 0)
return irq;
- }
err = request_irq(irq, vm_interrupt, IRQF_SHARED,
dev_name(&vdev->dev), vm_dev);