[PATCH] Fix build after r247570

Xin Li delphij at delphij.net
Fri Mar 1 21:49:30 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi, Marius,

The attached patch fixes two places where 'count' is not properly
initialized.  They should be merged together when 247570 is merged.

Cheers,
- -- 
Xin LI <delphij at delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJRMSJpAAoJEG80Jeu8UPuzsxsH/2cArvN1kjTXod8IlSVh3ImV
81pjIcBoNRDAOes6lptsdOOdOeNg4/MweG2PT1ZpxQ5yUQHdBld9eIsaruYnD2/y
RcfGeMdSJCZ216yaFHLu54nxvlJJXK1lsO1R1cdeBDdSoQChXulVv38FnKiB9J1m
ldFCC8oBdPX6yCRR5ZIuLXHXYXZjGw0Vyvta74NFTNwysrUcgtLT/1tpDpcVtDdd
Kd+hJtBif4+3zk4py6IS9qiiiO5wC2YkCC5oNhKy2Dh48l/QIagj0Fx/dWRNW8Q4
VUnKJMn4wnnrEmXAFxKMECaFWXKMmI7pQ/dxLMCaMSl2WJgVxHt5skv4iLKcgxc=
=Ah/7
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: sys/dev/aac/aac_pci.c
===================================================================
--- sys/dev/aac/aac_pci.c	(revision 247583)
+++ sys/dev/aac/aac_pci.c	(working copy)
@@ -340,7 +340,7 @@ aac_pci_attach(device_t dev)
 {
 	struct aac_softc *sc;
 	const struct aac_ident *id;
-	int count, error, reg, rid;
+	int count = 0, error, reg, rid;
 
 	fwprintf(NULL, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "");
 
Index: sys/dev/bce/if_bce.c
===================================================================
--- sys/dev/bce/if_bce.c	(revision 247583)
+++ sys/dev/bce/if_bce.c	(working copy)
@@ -1039,7 +1039,7 @@ bce_attach(device_t dev)
 	struct bce_softc *sc;
 	struct ifnet *ifp;
 	u32 val;
-	int count, error, rc = 0, rid;
+	int count = 0, error, rc = 0, rid;
 
 	sc = device_get_softc(dev);
 	sc->bce_dev = dev;


More information about the freebsd-current mailing list