Re: [PATCH] qed: fix unnecessary call to memset cocci warnings
From: David Miller
Date: Fri Nov 17 2017 - 20:32:42 EST
From: Vasyl Gomonovych <gomonovych@xxxxxxxxx>
Date: Thu, 16 Nov 2017 23:04:08 +0100
> Use kzalloc rather than kmalloc followed by memset with 0
>
> drivers/net/ethernet/qlogic/qed/qed_dcbx.c:1280:13-20: WARNING:
> kzalloc should be used for dcbx_info, instead of kmalloc/memset
> Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci
>
> Signed-off-by: Vasyl Gomonovych <gomonovych@xxxxxxxxx>
This patch doesn't even apply.