diff options
author | uqs <uqs@FreeBSD.org> | 2013-07-25 09:30:00 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2013-07-25 09:30:00 +0000 |
commit | 453e80a2c70ffdc20ab017f87f19a6fddb154d45 (patch) | |
tree | 9ae025c9f721b82c791e63e25ac44dab5b08175f | |
parent | c3d555792ec4298c52f6a1ba947fe6ccac398df1 (diff) | |
download | FreeBSD-src-453e80a2c70ffdc20ab017f87f19a6fddb154d45.zip FreeBSD-src-453e80a2c70ffdc20ab017f87f19a6fddb154d45.tar.gz |
Match function definition to declaration and call-site.
SVN r95378 refactored ahc_9005_subdevinfo_valid out into a separate
function but swapped the vendor/subvendor and device/subdevice pairs of
the parameters.
Found by: Coverity Prevent, CID 744931
Reviewed by: gibbs
-rw-r--r-- | sys/dev/aic7xxx/aic7xxx_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx_pci.c b/sys/dev/aic7xxx/aic7xxx_pci.c index 2bf4927..73df372 100644 --- a/sys/dev/aic7xxx/aic7xxx_pci.c +++ b/sys/dev/aic7xxx/aic7xxx_pci.c @@ -673,8 +673,8 @@ const u_int ahc_num_pci_devs = NUM_ELEMENTS(ahc_pci_ident_table); #define STA 0x08 #define DPR 0x01 -static int ahc_9005_subdevinfo_valid(uint16_t vendor, uint16_t device, - uint16_t subvendor, uint16_t subdevice); +static int ahc_9005_subdevinfo_valid(uint16_t device, uint16_t vendor, + uint16_t subdevice, uint16_t subvendor); static int ahc_ext_scbram_present(struct ahc_softc *ahc); static void ahc_scbram_config(struct ahc_softc *ahc, int enable, int pcheck, int fast, int large); @@ -766,7 +766,7 @@ ahc_find_pci_device(aic_dev_softc_t pci) * ID as valid. */ if (aic_get_pci_function(pci) > 0 - && ahc_9005_subdevinfo_valid(vendor, device, subvendor, subdevice) + && ahc_9005_subdevinfo_valid(device, vendor, subdevice, subvendor) && SUBID_9005_MFUNCENB(subdevice) == 0) return (NULL); |