diff options
author | avg <avg@FreeBSD.org> | 2009-09-24 07:11:23 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2009-09-24 07:11:23 +0000 |
commit | 96f7c01c8c88ab09204b311bf34772cbf18318b9 (patch) | |
tree | 74e4fa7e170e28930cb74fb5fb991eab8429fe07 /lib/libc/stdlib/a64l.c | |
parent | e9f89a2ebc629284a87e05e0400dca7ada271d6b (diff) | |
download | FreeBSD-src-96f7c01c8c88ab09204b311bf34772cbf18318b9.zip FreeBSD-src-96f7c01c8c88ab09204b311bf34772cbf18318b9.tar.gz |
number of cleanups in i386 and amd64 pci md code
o introduce PCIE_REGMAX and use it instead of ad-hoc constant
o where 'reg' parameter/variable is not already unsigned, cast it to
unsigned before comparison with maximum value to cut off negative
values
o use PCI_SLOTMAX in several places where 31 or 32 were explicitly used
o drop redundant check of 'bytes' in i386 pciereg_cfgread() - valid
values are already checked in the subsequent switch
Reviewed by: jhb
MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/a64l.c')
0 files changed, 0 insertions, 0 deletions