OpenCloudOS-Kernel/drivers/misc/mic/scif
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
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
scif_api.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
scif_debugfs.c mic: no need to check return value of debugfs_create functions 2019-06-18 13:47:24 +02:00
scif_dma.c misc: mic: scif: scif_dma: Fix a couple of kerneldoc issues 2020-07-01 15:08:04 +02:00
scif_epd.c misc: mic: scif: scif_epd: Describe missing 'scifdev' argument(s) 2020-07-01 15:08:04 +02:00
scif_epd.h misc: mic: Use PTR_ERR_OR_ZERO rather than its implementation 2019-09-10 23:18:05 +01:00
scif_fd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_fence.c misc: mic: scif: scif_fence: Fix a bunch of different documentation issues 2020-07-01 15:08:04 +02:00
scif_main.c misc: mic: scif: fix potential double free of scif_dev 2019-06-10 18:44:22 +02:00
scif_main.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_map.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_mmap.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_nm.c misc: mic: scif: scif_nm: Supply various kerneldoc fix-ups 2020-07-01 15:08:04 +02:00
scif_nodeqp.c misc: mic: drop double zeroing 2020-09-30 13:53:16 +02:00
scif_nodeqp.h misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_peer_bus.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_peer_bus.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_ports.c misc: mic: scif: scif_ports: Fix copy 'n' paste error 2020-07-01 15:08:03 +02:00
scif_rb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_rb.h
scif_rma.c misc: mic: scif: Fix error handling path 2020-09-22 18:53:47 +02:00
scif_rma.h IOMMU Updates for Linux v4.21 2019-01-01 15:55:29 -08:00
scif_rma_list.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
scif_rma_list.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00