linux_dsm_epyc7002/drivers/net/ethernet/qlogic/qed
Wu Fengguang 561ed23331 qed: fix kzalloc-simple.cocci warnings
drivers/net/ethernet/qlogic/qed/qed_dcbx.c:1230:13-20: WARNING: kzalloc should be used for dcbx_info, instead of kmalloc/memset
drivers/net/ethernet/qlogic/qed/qed_dcbx.c:1192:13-20: WARNING: kzalloc should be used for dcbx_info, instead of kmalloc/memset

 Use kzalloc rather than kmalloc followed by memset with 0

 This considers some simple cases that are common and easy to validate
 Note in particular that there are no ...s in the rule, so all of the
 matched code has to be contiguous

Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci

CC: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-01 09:47:36 -07:00
..
Makefile qed: add support for dcbx. 2016-05-17 12:29:34 -04:00
qed_cxt.c qed: potential overflow in qed_cxt_src_t2_alloc() 2016-06-08 00:33:25 -07:00
qed_cxt.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_dcbx.c qed: fix kzalloc-simple.cocci warnings 2016-09-01 09:47:36 -07:00
qed_dcbx.h qed: Add support for query/config dcbx. 2016-06-08 11:10:59 -07:00
qed_dev_api.h qed: Add support for coalescing config read/update. 2016-06-23 15:56:46 -04:00
qed_dev.c qed: Fix error return code in qed_resc_alloc() 2016-08-01 21:37:35 -07:00
qed_hsi.h qed: Use ieee mfw-mask to get ethtype in ieee-dcbx mode. 2016-08-08 22:22:19 -07:00
qed_hw.c qed: Add support for coalescing config read/update. 2016-06-23 15:56:46 -04:00
qed_hw.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_init_fw_funcs.c qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_init_ops.c qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_init_ops.h qed: Add module with basic common support 2015-10-27 19:34:42 -07:00
qed_int.c qed: Add support for coalescing config read/update. 2016-06-23 15:56:46 -04:00
qed_int.h qed: Add support for coalescing config read/update. 2016-06-23 15:56:46 -04:00
qed_l2.c qed: Prevent over-usage of vlan credits by PF 2016-07-30 20:34:03 -07:00
qed_l2.h qed*: Tx-switching configuration 2016-05-12 00:04:08 -04:00
qed_main.c qed: Fail driver load in 100g MSI mode. 2016-08-01 22:13:59 -07:00
qed_mcp.c qed: Add iscsi/rdma personalities 2016-06-03 20:08:39 -04:00
qed_mcp.h qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_reg_addr.h qed: Add support for coalescing config read/update. 2016-06-23 15:56:46 -04:00
qed_selftest.c qed: add infrastructure for device self tests. 2016-05-02 00:16:39 -04:00
qed_selftest.h qed: add infrastructure for device self tests. 2016-05-02 00:16:39 -04:00
qed_sp_commands.c qed: Add iscsi/rdma personalities 2016-06-03 20:08:39 -04:00
qed_sp.h qed: Add common HSI for new protocols 2016-06-03 20:08:39 -04:00
qed_spq.c qed: Fix setting/clearing bit in completion bitmap 2016-07-25 21:41:19 -07:00
qed_sriov.c qed: Fix removal of spoof checking for VFs 2016-07-30 20:33:53 -07:00
qed_sriov.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-06-10 11:52:24 -07:00
qed_vf.c qed: Don't over-do producer cleanup for Rx 2016-07-30 20:34:03 -07:00
qed_vf.h qed: Relax VF firmware requirements 2016-06-07 15:40:11 -07:00
qed.h qed: FLR of active VFs might lead to FW assert 2016-08-22 18:11:38 -07:00