提交 6f8f8e4d 编写于 作者: D Dave Jones 提交者: James Bottomley

[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: NDave Jones <davej@fedoraproject.org>
Acked-by: NHannes Reinecke <hare@suse.de>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 e481cce8
...@@ -692,7 +692,7 @@ ahc_find_pci_device(ahc_dev_softc_t pci) ...@@ -692,7 +692,7 @@ ahc_find_pci_device(ahc_dev_softc_t pci)
* ID as valid. * ID as valid.
*/ */
if (ahc_get_pci_function(pci) > 0 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) && SUBID_9005_MFUNCENB(subdevice) == 0)
return (NULL); return (NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册