diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-03-03 16:52:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-03-03 16:52:26 +0000 |
commit | 67b4c71c5f4eb93cde727d75cdb065ede2caa3e9 (patch) | |
tree | b24e23528b8ed7c2bccc1d0114e39d7c8ec73423 /sys/dev/pci/puc.c | |
parent | 03f32476187e8858467c286465bc61232a3738d5 (diff) |
shorten sizes of variables to the required number of bits, and remove
unused variables, tested by todd
ok kettenis
Diffstat (limited to 'sys/dev/pci/puc.c')
-rw-r--r-- | sys/dev/pci/puc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/puc.c b/sys/dev/pci/puc.c index 35e736c1d9d..ad37194ceb8 100644 --- a/sys/dev/pci/puc.c +++ b/sys/dev/pci/puc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: puc.c,v 1.13 2007/12/04 21:49:35 kettenis Exp $ */ +/* $OpenBSD: puc.c,v 1.14 2009/03/03 16:52:25 deraadt Exp $ */ /* $NetBSD: puc.c,v 1.3 1999/02/06 06:29:54 cgd Exp $ */ /* @@ -199,7 +199,6 @@ puc_pci_attach(struct device *parent, struct device *self, void *aux) 0, &sc->sc_bar_mappings[i].t, &sc->sc_bar_mappings[i].h, &sc->sc_bar_mappings[i].a, &sc->sc_bar_mappings[i].s, 0) == 0); - sc->sc_bar_mappings[i].type = type; if (sc->sc_bar_mappings[i].mapped) continue; @@ -345,7 +344,8 @@ puc_submatch(struct device *parent, void *vcf, void *aux) } const struct puc_device_description * -puc_find_description(u_long vend, u_long prod, u_long svend, u_long sprod) +puc_find_description(u_int16_t vend, u_int16_t prod, + u_int16_t svend, u_int16_t sprod) { int i; |