From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [2.6.19 PATCH 4/7] ehea: ethtool interface Date: Fri, 18 Aug 2006 10:45:47 -0700 Message-ID: <20060818104547.5ad1352f@localhost.localdomain> References: <200608181333.23031.ossthema@de.ibm.com> <20060818140506.GC5201@martell.zuzino.mipt.ru> <44E5DFA6.7040707@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Alexey Dobriyan , Jan-Bernd Themann , netdev@vger.kernel.org, Christoph Raisch , Jan-Bernd Themann , linux-kernel , linux-ppc , Marcus Eder , Thomas Klein Return-path: Received: from smtp.osdl.org ([65.172.181.4]:25475 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751442AbWHRRqA (ORCPT ); Fri, 18 Aug 2006 13:46:00 -0400 To: Thomas Klein In-Reply-To: <44E5DFA6.7040707@de.ibm.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, 18 Aug 2006 17:41:26 +0200 Thomas Klein wrote: > Hi Alexey, > > first of all thanks a lot for the extensive review. > > > Alexey Dobriyan wrote: > >> + u64 hret = H_HARDWARE; > > > > Useless assignment here and everywhere. > > > > Initializing returncodes to errorstate is a cheap way to prevent > accidentally returning (uninitalized) success returncodes which > can lead to catastrophic misbehaviour. That is old thinking. Current compilers do live/dead analysis and tell you about this at compile time which is better than relying on default behavior at runtime.