From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Subject: Re: [2.6.19 PATCH 4/7] ehea: ethtool interface Date: Sat, 19 Aug 2006 16:18:24 +1000 Message-ID: <1155968305.1388.4.camel@localhost.localdomain> References: <200608181333.23031.ossthema@de.ibm.com> <20060818140506.GC5201@martell.zuzino.mipt.ru> <44E5DFA6.7040707@de.ibm.com> Reply-To: michael@ellerman.id.au Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1039122238==" Cc: Thomas Klein , Jan-Bernd Themann , netdev@vger.kernel.org, linux-kernel , linux-ppc , Christoph Raisch , Marcus Eder , Alexey Dobriyan Return-path: To: Thomas Klein In-Reply-To: <44E5DFA6.7040707@de.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org List-Id: netdev.vger.kernel.org --===============1039122238== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NFcgwjM1giwsjnU4Nx34" --=-NFcgwjM1giwsjnU4Nx34 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-08-18 at 17:41 +0200, Thomas Klein wrote: > Hi Alexey, >=20 > first of all thanks a lot for the extensive review. >=20 >=20 > Alexey Dobriyan wrote: > >> + u64 hret =3D H_HARDWARE; > >=20 > > Useless assignment here and everywhere. > >=20 >=20 > Initializing returncodes to errorstate is a cheap way to prevent > accidentally returning (uninitalized) success returncodes which > can lead to catastrophic misbehaviour. If you try to return an uninitialized value the compiler will warn you, you'll then look at the code and realise you missed a case, you might save yourself a bug. By unconditionally initialising you are lying to the compiler, and it can no longer help you. cheers --=20 Michael Ellerman IBM OzLabs wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person --=-NFcgwjM1giwsjnU4Nx34 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBE5q0wdSjSd0sB4dIRAl0lAKCckSJpdvVFn0urhSL2CWjX9M/E6wCfc8V6 zPTSmq9+N6RQnWIopVsfV4U= =5H4K -----END PGP SIGNATURE----- --=-NFcgwjM1giwsjnU4Nx34-- --===============1039122238== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev --===============1039122238==--