Re: [PATCH] 2.5.43 : drivers/block/xd.c

Daniel Egger (degger@fhm.edu)
21 Oct 2002 01:33:17 +0200


--=-BIWgadaUzpR42fA5bljC
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Am Sam, 2002-10-19 um 02.58 schrieb Frank Davis:

> Hello all,
> The following fixes a 'used but not declared' compile error. Please rev=
iew=20
> for inclusion.

The "standard" way of achieving the same would be to assign the variable
to itself. In your fragment the compiler will initialise the variable to
zero which will cost at least one instruction and thus "bloat" the code,
it'll also be slower due to an additional instruction and may schedule
worse. Not that it mattered much in this case but if you can save a byte
or two... :)
=20
--=20
Servus,
Daniel

--=-BIWgadaUzpR42fA5bljC
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQA9sz08chlzsq9KoIYRAt7QAKC289qta/4/b5Hw/wqD+OXdyNAoXQCffCnM
IJyLtXuBsasMm6wUaoWuLcc=
=0vhS
-----END PGP SIGNATURE-----

--=-BIWgadaUzpR42fA5bljC--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/