From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Horman Subject: Re: [PATCH] stats: remove useless memset's Date: Wed, 21 Jan 2015 07:43:59 -0500 Message-ID: <20150121124359.GD18515@hmsreliant.think-freely.org> References: <1421813818-2354-1-git-send-email-stephen@networkplumber.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev-VfR2kkLFssw@public.gmane.org, Stephen Hemminger To: stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org Return-path: Content-Disposition: inline In-Reply-To: <1421813818-2354-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Tue, Jan 20, 2015 at 08:16:58PM -0800, stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org wrote: > From: Stephen Hemminger > > The rte_eth_stats_get is the only API that should call the device > statistics function directly, and it already does a memset of the > resulting structure. Therefore doing memset() in the driver is > redundant and should be removed. > > Signed-off-by: Stephen Hemminger Acked-by: Neil Horman