media: atomisp: clean up for-loop, remove redundant assignment to variable i
Subsystems (5)
Media (V4L/DVB) Staging Kernel janitors Intel MID (Mobile Internet Device) platform +1 more subsystems
PATCH 1/1 media: atomisp: clean up for-loop, remove redundant assignment to variable i
There is a for-loop that initializes variable i but does not use it; the assignment is redundant and can be removed. The proceeding assignment to pointer fw can also be moved into the for-loop to clean up the code.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/staging/media/atomisp/pci/sh_css.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/sh_css.c +1 -2
@@ -3510,8 +3510,7 @@ create_host_acc_pipeline(struct ia_css_pipe *pipe)if (pipe->config.acc_extension) pipe->pipeline.pipe_qos_config =0 ; - fw = pipe->vf_stage; -for (i =0 ; fw; fw = fw->next) { +for (fw = pipe->vf_stage; fw; fw = fw->next) { err =sh_css_pipeline_add_acc_stage (&pipe->pipeline, fw);if (err) goto ERR;
Signature · 1 line
2.35.3