]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-subdev.c: kvmalloc_array -> kvcalloc
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 May 2022 07:14:42 +0000 (09:14 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:22 +0000 (11:02 +0200)
commit84fa2e2acf99b1dc7c10b74b4be4091da7822853
treef8f544c8ab3398d3acd485fe22e94b8afc749fad
parentc681c3a261ee9550b292d8de5702ea2bb9d77895
media: v4l2-subdev.c: kvmalloc_array -> kvcalloc

Fixes smatch warning:

drivers/media/v4l2-core/v4l2-subdev.c:978 __v4l2_subdev_state_alloc() warn: Please consider using kvcalloc instead

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-subdev.c