Thread (11 messages) flat view 11 messages, 8 authors, 2006-08-21

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

From: Thomas Klein <hidden>
Date: 2006-08-21 09:53:35
Also in: lkml, netdev

Stephen Hemminger wrote:
On Fri, 18 Aug 2006 17:41:26 +0200
Thomas Klein [off-list ref] wrote:
quoted
Hi Alexey,

first of all thanks a lot for the extensive review.


Alexey Dobriyan wrote:
quoted
quoted
+	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.
Understood. I reworked the returncode handling and removed the
unnecessary initializations.

Thanks for pointing this out.

Thomas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help