Re: [PATCH] qed: fix unnecessary call to memset cocci warnings
From: David Miller
Date: Wed Nov 15 2017 - 20:38:09 EST
From: Vasyl Gomonovych <gomonovych@xxxxxxxxx>
Date: Wed, 15 Nov 2017 20:58:15 +0100
> @@ -1277,11 +1277,10 @@ static struct qed_dcbx_get *qed_dcbnl_get_dcbx(struct qed_hwfn *hwfn,
> {
> struct qed_dcbx_get *dcbx_info;
>
> - dcbx_info = kmalloc(sizeof(*dcbx_info), GFP_ATOMIC);
> + dcbx_info = kzmalloc(sizeof(*dcbx_info), GFP_ATOMIC);
Thanks for not even compile testing your patch.