mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
[SCSI] aic7xxx: fix swapped arguments in ahc_find_pci_device
The prototype for ahc_9005_subdevinfo_valid shows that the caller has the arguments in the wrong order. 637 ahc_9005_subdevinfo_valid(uint16_t device, uint16_t vendor, 638 uint16_t subdevice, uint16_t subvendor) Signed-off-by: Dave Jones <davej@fedoraproject.org> Acked-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
e481cce8b0
commit
6f8f8e4d31
@ -692,7 +692,7 @@ ahc_find_pci_device(ahc_dev_softc_t pci)
|
||||
* ID as valid.
|
||||
*/
|
||||
if (ahc_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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user