linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* linux-4.5-rc4/arch/powerpc/boot/treeboot-akebono.c:90: possible bad test ?
@ 2016-02-16  8:15 David Binderman
  2016-02-16 22:39 ` Daniel Axtens
  0 siblings, 1 reply; 3+ messages in thread
From: David Binderman @ 2016-02-16  8:15 UTC (permalink / raw)
  To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au,
	linuxppc-dev@lists.ozlabs.org

hello there=2C=0A=
=0A=
[linux-4.5-rc4/arch/powerpc/boot/treeboot-akebono.c:90]: (style) A pointer =
can not be negative so it is either pointless or an error to check if it is=
 not.=0A=
=0A=
Source code is=0A=
=0A=
=A0=A0=A0 emac =3D finddevice("/plb/opb/ethernet")=3B=0A=
=A0=A0=A0 if (emac> 0) {=0A=
=0A=
but=0A=
=0A=
=A0=A0=A0 void *emac=3B=0A=
=0A=
Suggest new code=0A=
=0A=
=A0=A0=A0 emac =3D finddevice("/plb/opb/ethernet")=3B=0A=
=A0=A0=A0 if (emac !=3D 0) {=0A=
=0A=
=0A=
Regards=0A=
=0A=
David Binderman=0A=
 		 	   		  =

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-17  7:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16  8:15 linux-4.5-rc4/arch/powerpc/boot/treeboot-akebono.c:90: possible bad test ? David Binderman
2016-02-16 22:39 ` Daniel Axtens
2016-02-17  7:34   ` David Binderman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).