Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751442AbWHRRqB (ORCPT ); Fri, 18 Aug 2006 13:46:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751443AbWHRRqB (ORCPT ); Fri, 18 Aug 2006 13:46:01 -0400 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 Date: Fri, 18 Aug 2006 10:45:47 -0700 From: Stephen Hemminger To: Thomas Klein Cc: Alexey Dobriyan , Jan-Bernd Themann , netdev@vger.kernel.org, Christoph Raisch , Jan-Bernd Themann , linux-kernel , linux-ppc , Marcus Eder , Thomas Klein Subject: Re: [2.6.19 PATCH 4/7] ehea: ethtool interface Message-ID: <20060818104547.5ad1352f@localhost.localdomain> In-Reply-To: <44E5DFA6.7040707@de.ibm.com> References: <200608181333.23031.ossthema@de.ibm.com> <20060818140506.GC5201@martell.zuzino.mipt.ru> <44E5DFA6.7040707@de.ibm.com> Organization: OSDL X-Mailer: Sylpheed-Claws 2.1.0 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 848 Lines: 26 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/