Re: [PATCH net-next] mlxsw: spectrum_span: Fix initialization of struct mlxsw_sp_span_parms

2018-03-23 Thread David Miller
From: Ido Schimmel Date: Thu, 22 Mar 2018 20:14:47 +0200 > From: Petr Machata > > Since the first element of struct mlxsw_sp_span_parms is a pointer, > to zero-initialize this structure the correct notation is not = {0}, but > rather = {NULL}, as

[PATCH net-next] mlxsw: spectrum_span: Fix initialization of struct mlxsw_sp_span_parms

2018-03-22 Thread Ido Schimmel
From: Petr Machata Since the first element of struct mlxsw_sp_span_parms is a pointer, to zero-initialize this structure the correct notation is not = {0}, but rather = {NULL}, as reported by sparse. Signed-off-by: Petr Machata Acked-by: Jiri Pirko