media: atomisp: Remove unnecessary memset(foo, 0, sizeof(foo)) calls
The memory for all of struct atomisp_video_pipe is kzalloc()-ed in atomisp_subdev_init() so there is no need to memset parts of struct atomisp_video_pipe to 0. Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
20734fcae9
commit
d24a42b9a6
|
@ -1054,11 +1054,6 @@ static int atomisp_init_subdev_pipe(struct atomisp_sub_device *asd,
|
|||
INIT_LIST_HEAD(&pipe->activeq);
|
||||
INIT_LIST_HEAD(&pipe->buffers_waiting_for_param);
|
||||
INIT_LIST_HEAD(&pipe->per_frame_params);
|
||||
memset(pipe->frame_request_config_id,
|
||||
0, VIDEO_MAX_FRAME * sizeof(unsigned int));
|
||||
memset(pipe->frame_params,
|
||||
0, VIDEO_MAX_FRAME *
|
||||
sizeof(struct atomisp_css_params_with_list *));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue