[2.6.19 PATCH 4/7] ehea: ethtool interface

Stephen Hemminger shemminger at osdl.org
Sat Aug 19 03:45:47 EST 2006


On Fri, 18 Aug 2006 17:41:26 +0200
Thomas Klein <osstklei at de.ibm.com> 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.



More information about the Linuxppc-dev mailing list