diff options
author | Laurent Pinchart <[email protected]> | 2020-07-06 20:35:32 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2020-07-19 08:32:49 +0200 |
commit | d64463598f50b882a92e8b06ce4c8c338f818a95 (patch) | |
tree | 90bd0f13ee2045215da61dce474ec7ddea30bb34 | |
parent | 6ff1d7260693cad1e06c24f99dc2f4d0cebb2589 (diff) |
media: ti-vpe: cal: Remove needless casts
Casting from a void pointer to a struct pointer doesn't require a cast.
Remove them.
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Reviewed-by: Benoit Parrot <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r-- | drivers/media/platform/ti-vpe/cal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c index d0390b23426d..ee6f700ad190 100644 --- a/drivers/media/platform/ti-vpe/cal.c +++ b/drivers/media/platform/ti-vpe/cal.c @@ -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; |