mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 02:54:32 +08:00
3de3c4785b
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> |
||
---|---|---|
.. | ||
efa_admin_cmds_defs.h | ||
efa_admin_defs.h | ||
efa_com_cmd.c | ||
efa_com_cmd.h | ||
efa_com.c | ||
efa_com.h | ||
efa_common_defs.h | ||
efa_main.c | ||
efa_regs_defs.h | ||
efa_verbs.c | ||
efa.h | ||
Kconfig | ||
Makefile |