media: ti-vpe: cal: Remove needless casts
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Jul 2020 18:35:32 +0000 (20:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 06:32:49 +0000 (08:32 +0200)
Casting from a void pointer to a struct pointer doesn't require a cast.
Remove them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c

index d0390b2..ee6f700 100644 (file)
@@ -1205,7 +1205,7 @@ static inline void cal_process_buffer_complete(struct cal_ctx *ctx)
 
 static irqreturn_t cal_irq(int irq_cal, void *data)
 {
-       struct cal_dev *dev = (struct cal_dev *)data;
+       struct cal_dev *dev = data;
        struct cal_ctx *ctx;
        struct cal_dmaqueue *dma_q;
        u32 status;
@@ -2404,8 +2404,7 @@ runtime_disable:
 
 static int cal_remove(struct platform_device *pdev)
 {
-       struct cal_dev *dev =
-               (struct cal_dev *)platform_get_drvdata(pdev);
+       struct cal_dev *dev = platform_get_drvdata(pdev);
        struct cal_ctx *ctx;
        int i;