linux/drivers/media/common/saa7146
Julia Lawall 8cc72b9c70 media: saa7146: drop double zeroing
sg_init_table zeroes its first argument, so the allocation of that argument
doesn't have to.

the semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,n,flags;
@@

x =
- kcalloc
+ kmalloc_array
  (n,sizeof(struct scatterlist),flags)
...
sg_init_table(x,n)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-27 11:30:13 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
saa7146_core.c media: saa7146: drop double zeroing 2020-09-27 11:30:13 +02:00
saa7146_fops.c media: media/common/saa7146: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:30 +01:00
saa7146_hlp.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
saa7146_i2c.c media: saa7146: make use of i2c_8bit_addr_from_msg 2019-01-16 12:38:42 -05:00
saa7146_vbi.c treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts 2017-11-21 16:35:54 -08:00
saa7146_video.c media: saa7146: Avoid using BUG_ON as an assertion 2020-01-08 14:28:59 +01:00