]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_span: Fix initialization of struct mlxsw_sp_span_parms
authorPetr Machata <petrm@mellanox.com>
Thu, 22 Mar 2018 18:14:47 +0000 (20:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Mar 2018 16:59:26 +0000 (12:59 -0400)
commit84de6fc06f52f95c1df29dd7dea073282f4f5ed1
tree65ca9ce263add0543cf5a6a6b167a319cccea7d7
parent950b63d4478ddf342993fb36b10ffca8fd4e24ed
mlxsw: spectrum_span: Fix initialization of struct mlxsw_sp_span_parms

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 <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c