summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-12-28 22:56:03 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-02-08 08:03:24 +0100
commitd24a42b9a643c4999a1710c3a30387208a1b60f6 (patch)
tree714c762ab94f1047d23a4ccbf0d437bf7588bd54 /drivers/staging
parent20734fcae96c8e5fd164e7afe40088ffe4e71803 (diff)
downloadlinux-stable-d24a42b9a643c4999a1710c3a30387208a1b60f6.tar.gz
linux-stable-d24a42b9a643c4999a1710c3a30387208a1b60f6.tar.bz2
linux-stable-d24a42b9a643c4999a1710c3a30387208a1b60f6.zip
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp_subdev.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_subdev.c b/drivers/staging/media/atomisp/pci/atomisp_subdev.c
index c32db4ffb778..eb8f319fca5c 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_subdev.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_subdev.c
@@ -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;
}