From b9407b259f70e6d14d5258045b78e274cc77d51d Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 28 Nov 2023 17:39:58 +0300 Subject: media: chips-media: wave5: Remove duplicate check We already verified that "ret" is zero a few lines earlier. Delete this duplicate check. Signed-off-by: Dan Carpenter Reviewed-by: Nicolas Dufresne Signed-off-by: Sebastian Fricke Signed-off-by: Hans Verkuil --- drivers/media/platform/chips-media/wave5/wave5-hw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/chips-media/wave5/wave5-hw.c b/drivers/media/platform/chips-media/wave5/wave5-hw.c index 3fcb2d92add8..f1e022fb148e 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-hw.c +++ b/drivers/media/platform/chips-media/wave5/wave5-hw.c @@ -578,9 +578,6 @@ int wave5_vpu_dec_init_seq(struct vpu_instance *inst) dev_dbg(inst->dev->dev, "%s: init seq sent (queue %u : %u)\n", __func__, p_dec_info->instance_queue_count, p_dec_info->report_queue_count); - if (ret) - return ret; - return 0; } -- cgit v1.2.3