aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWu Fengguang <[email protected]>2016-09-01 14:45:12 +0800
committerDavid S. Miller <[email protected]>2016-09-01 09:47:36 -0700
commit561ed23331dfefea4c8eec616463ee4d0c8fa4b7 (patch)
tree06cb2a1534fbfced512d3f3211a58e7cba3f0add /tools/perf/scripts/python
parentcb849e3041e4238d2593b2a565a24757736b79fc (diff)
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 <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Acked-by: Yuval Mintz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions