From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Bennieston Subject: Re: [PATCH V4 net-next 2/5] xen-netback: Add support for multiple queues Date: Fri, 21 Feb 2014 12:24:23 +0000 Message-ID: <53074577.7020403@citrix.com> References: <1392659880-2538-1-git-send-email-andrew.bennieston@citrix.com> <1392659880-2538-3-git-send-email-andrew.bennieston@citrix.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0255316@AMSPEX01CL01.citrite.net> <53074490.8030806@citrix.com> <53074510.2040408@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: Paul Durrant , "xen-devel@lists.xenproject.org" , Ian Campbell , Wei Liu , "netdev@vger.kernel.org" To: David Vrabel Return-path: Received: from smtp02.citrix.com ([66.165.176.63]:16225 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547AbaBUMYZ (ORCPT ); Fri, 21 Feb 2014 07:24:25 -0500 In-Reply-To: <53074510.2040408@citrix.com> Sender: netdev-owner@vger.kernel.org List-ID: On 21/02/14 12:22, David Vrabel wrote: >>>> + char *xspath = NULL; >>> >>> I don't think you need the NULL init here. xspath is set in both >>> branches of the if statement below. >> >> Indeed, but I prefer to initialise things sanely where possible. It >> makes it easier to spot problems with later modifications of the code, >> e.g. if one of those branches changed. > > Kernel style (but probably not documented anywhere) is to only > initialize locals were necessary. > > David > Ok, I'll remove the NULL initialiser then. Andrew