Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: mali-c55: Remove duplicated version check

The Mali C55 driver uses the v4l2-isp framework, which performs
validation of the parameters buffer versioning in the
v4l2_isp_params_validate_buffer() function.

It is not necessary to replicate the validation of the parameters buffer
versioning in the platform-specific implementation.

Remove it.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Jacopo Mondi and committed by
Hans Verkuil
8c0af684 003c492f

-7
-7
drivers/media/platform/arm/mali-c55/mali-c55-params.c
··· 582 582 struct mali_c55 *mali_c55 = params->mali_c55; 583 583 int ret; 584 584 585 - if (config->version != MALI_C55_PARAM_BUFFER_V1) { 586 - dev_dbg(mali_c55->dev, 587 - "Unsupported extensible format version: %u\n", 588 - config->version); 589 - return -EINVAL; 590 - } 591 - 592 585 ret = v4l2_isp_params_validate_buffer_size(mali_c55->dev, vb, 593 586 v4l2_isp_params_buffer_size(MALI_C55_PARAMS_MAX_SIZE)); 594 587 if (ret)