linux/drivers/infiniband/hw/efa
Julia Lawall 3de3c4785b RDMA/efa: Drop double zeroing for sg_init_table()
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(*x),flags)
...
sg_init_table(x,n)
// </smpl>

Link: https://lore.kernel.org/r/1600601186-7420-6-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Acked-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-22 20:26:47 -03:00
..
efa_admin_cmds_defs.h RDMA/efa: Add messages and RDMA read work requests HW stats 2020-09-22 20:21:11 -03:00
efa_admin_defs.h RDMA/efa: Unified getters/setters for device structs bitmask access 2020-02-28 12:12:04 -04:00
efa_com_cmd.c RDMA/efa: Add messages and RDMA read work requests HW stats 2020-09-22 20:21:11 -03:00
efa_com_cmd.h RDMA/efa: Add messages and RDMA read work requests HW stats 2020-09-22 20:21:11 -03:00
efa_com.c RDMA/efa: Count admin commands errors 2020-05-02 20:32:14 -03:00
efa_com.h RDMA/efa: Count admin commands errors 2020-05-02 20:32:14 -03:00
efa_common_defs.h RDMA/efa: Unified getters/setters for device structs bitmask access 2020-02-28 12:12:04 -04:00
efa_main.c RDMA/efa: Add EFA 0xefa1 PCI ID 2020-07-29 09:23:40 -03:00
efa_regs_defs.h RDMA/efa: Properly document the interrupt mask register 2020-02-28 12:12:12 -04:00
efa_verbs.c RDMA/efa: Drop double zeroing for sg_init_table() 2020-09-22 20:26:47 -03:00
efa.h RDMA/efa: Group keep alive received counter with other SW stats 2020-09-22 20:21:11 -03:00
Kconfig RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00
Makefile RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00