linux-stable/drivers/misc/mic
Julia Lawall 4533765675 misc: mic: 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>
Link: https://lore.kernel.org/r/1600601186-7420-14-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-30 13:53:16 +02:00
..
bus treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 290 2019-06-05 17:36:38 +02:00
card misc: mic: card: mic_debugfs: Demote function headers from kerneldoc 2020-07-01 15:08:03 +02:00
common treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 290 2019-06-05 17:36:38 +02:00
cosm misc: mic: cosm: cosm_debugfs: Demote function headers from kerneldoc 2020-07-01 15:08:04 +02:00
cosm_client treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 290 2019-06-05 17:36:38 +02:00
host misc: mic: host: mic_debugfs: Demote function headers from kerneldoc 2020-07-01 15:08:03 +02:00
scif misc: mic: drop double zeroing 2020-09-30 13:53:16 +02:00
vop vop: sparse warning fixup 2020-07-10 14:58:00 +02:00
Kconfig dma-mapping: make support for dma ops optional 2020-07-19 09:29:23 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00