media: davinci/vpif.c: drop unnecessary cast
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 26 Jan 2023 12:16:40 +0000 (13:16 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:30:11 +0000 (08:30 +0100)
DEFINE_RES_IRQ_NAMED already casts to (struct resource), so no
need to do it again.

This fixes a sparse warning:

vpif.c:483:20: warning: cast to non-scalar

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/ti/davinci/vpif.c

index da27da4c165a01e5bd78675a2b7076ccac1e3842..832489822706ad508c1d6e3e80171c7c17b2199a 100644 (file)
@@ -480,7 +480,7 @@ static int vpif_probe(struct platform_device *pdev)
                ret = irq;
                goto err_put_rpm;
        }
-       res_irq = (struct resource)DEFINE_RES_IRQ_NAMED(irq, of_node_full_name(pdev->dev.of_node));
+       res_irq = DEFINE_RES_IRQ_NAMED(irq, of_node_full_name(pdev->dev.of_node));
        res_irq.flags |= irq_get_trigger_type(irq);
 
        pdev_capture = kzalloc(sizeof(*pdev_capture), GFP_KERNEL);