aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2016-09-01 14:45:12 +0800
committerDavid S. Miller <davem@davemloft.net>2016-09-01 09:47:36 -0700
commit561ed23331dfefea4c8eec616463ee4d0c8fa4b7 (patch)
tree06cb2a1534fbfced512d3f3211a58e7cba3f0add /drivers/net/ethernet/broadcom
parentMerge branch 'mlxsw-fixes' (diff)
downloadlinux-dev-561ed23331dfefea4c8eec616463ee4d0c8fa4b7.tar.xz
linux-dev-561ed23331dfefea4c8eec616463ee4d0c8fa4b7.zip
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom')
0 files changed, 0 insertions, 0 deletions