From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:43908 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751889AbeCWRAJ (ORCPT ); Fri, 23 Mar 2018 13:00:09 -0400 Date: Fri, 23 Mar 2018 13:00:07 -0400 (EDT) Message-Id: <20180323.130007.1451139191769215360.davem@davemloft.net> To: idosch@mellanox.com Cc: netdev@vger.kernel.org, petrm@mellanox.com, jiri@mellanox.com, mlxsw@mellanox.com Subject: Re: [PATCH net-next] mlxsw: spectrum_span: Fix initialization of struct mlxsw_sp_span_parms From: David Miller In-Reply-To: <20180322181447.27554-1-idosch@mellanox.com> References: <20180322181447.27554-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: 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 reported by sparse. > > Signed-off-by: Petr Machata > Acked-by: Jiri Pirko > Signed-off-by: Ido Schimmel Applied.