From: Thomas Klein <osstklei@de.ibm.com>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: Thomas Klein <tklein@de.ibm.com>,
Jan-Bernd Themann <themann@de.ibm.com>,
netdev@vger.kernel.org,
linux-kernel <linux-kernel@vger.kernel.org>,
Christoph Raisch <raisch@de.ibm.com>,
linux-ppc <linuxppc-dev@ozlabs.org>,
Marcus Eder <meder@de.ibm.com>,
Alexey Dobriyan <adobriyan@gmail.com>
Subject: Re: [2.6.19 PATCH 4/7] ehea: ethtool interface
Date: Mon, 21 Aug 2006 11:53:31 +0200 [thread overview]
Message-ID: <44E9829B.7010503@de.ibm.com> (raw)
In-Reply-To: <20060818104547.5ad1352f@localhost.localdomain>
Stephen Hemminger wrote:
> On Fri, 18 Aug 2006 17:41:26 +0200
> Thomas Klein <osstklei@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.
Understood. I reworked the returncode handling and removed the
unnecessary initializations.
Thanks for pointing this out.
Thomas
WARNING: multiple messages have this Message-ID (diff)
From: Thomas Klein <osstklei@de.ibm.com>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>,
Jan-Bernd Themann <ossthema@de.ibm.com>,
netdev@vger.kernel.org, Christoph Raisch <raisch@de.ibm.com>,
Jan-Bernd Themann <themann@de.ibm.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-ppc <linuxppc-dev@ozlabs.org>,
Marcus Eder <meder@de.ibm.com>, Thomas Klein <tklein@de.ibm.com>
Subject: Re: [2.6.19 PATCH 4/7] ehea: ethtool interface
Date: Mon, 21 Aug 2006 11:53:31 +0200 [thread overview]
Message-ID: <44E9829B.7010503@de.ibm.com> (raw)
In-Reply-To: <20060818104547.5ad1352f@localhost.localdomain>
Stephen Hemminger wrote:
> On Fri, 18 Aug 2006 17:41:26 +0200
> Thomas Klein <osstklei@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.
Understood. I reworked the returncode handling and removed the
unnecessary initializations.
Thanks for pointing this out.
Thomas
next prev parent reply other threads:[~2006-08-21 9:53 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-18 11:33 [2.6.19 PATCH 4/7] ehea: ethtool interface Jan-Bernd Themann
2006-08-18 11:33 ` Jan-Bernd Themann
2006-08-18 14:05 ` Alexey Dobriyan
2006-08-18 14:05 ` Alexey Dobriyan
2006-08-18 15:41 ` Thomas Klein
2006-08-18 15:41 ` Thomas Klein
2006-08-18 17:45 ` Stephen Hemminger
2006-08-18 17:45 ` Stephen Hemminger
2006-08-21 9:53 ` Thomas Klein [this message]
2006-08-21 9:53 ` Thomas Klein
2006-08-19 6:18 ` Michael Ellerman
2006-08-19 6:18 ` Michael Ellerman
2006-08-19 6:18 ` Michael Ellerman
2006-08-19 6:48 ` Andy Gay
2006-08-19 6:48 ` Andy Gay
2006-08-19 8:41 ` Michael Ellerman
2006-08-19 8:41 ` Michael Ellerman
2006-08-19 13:47 ` Arnd Bergmann
2006-08-19 13:47 ` Arnd Bergmann
2006-08-19 14:40 ` Jeff Garzik
2006-08-19 14:40 ` Jeff Garzik
2006-08-21 10:53 ` Thomas Klein
2006-08-21 10:53 ` Thomas Klein
-- strict thread matches above, loose matches on Subject: below --
2006-08-22 12:54 Jan-Bernd Themann
2006-08-22 12:54 ` Jan-Bernd Themann
2006-08-23 8:57 Jan-Bernd Themann
2006-08-23 8:57 ` Jan-Bernd Themann
2006-09-04 10:40 Jan-Bernd Themann
2006-09-04 10:40 ` Jan-Bernd Themann
2006-09-06 13:33 Jan-Bernd Themann
2006-09-06 13:33 ` Jan-Bernd Themann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44E9829B.7010503@de.ibm.com \
--to=osstklei@de.ibm.com \
--cc=adobriyan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=meder@de.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=raisch@de.ibm.com \
--cc=shemminger@osdl.org \
--cc=themann@de.ibm.com \
--cc=tklein@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.