Skip to content

Commit 8c0af68

Browse files
Jacopo MondiHans Verkuil
authored andcommitted
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 <[email protected]> Reviewed-by: Daniel Scally <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 003c492 commit 8c0af68

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/media/platform/arm/mali-c55/mali-c55-params.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -582,13 +582,6 @@ static int mali_c55_params_buf_prepare(struct vb2_buffer *vb)
582582
struct mali_c55 *mali_c55 = params->mali_c55;
583583
int ret;
584584

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-
592585
ret = v4l2_isp_params_validate_buffer_size(mali_c55->dev, vb,
593586
v4l2_isp_params_buffer_size(MALI_C55_PARAMS_MAX_SIZE));
594587
if (ret)

0 commit comments

Comments
 (0)