diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 1bb879959a20..d9fc1bd1f3e8 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1383,7 +1383,7 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) | |||
1383 | */ | 1383 | */ |
1384 | int pcix_get_max_mmrbc(struct pci_dev *dev) | 1384 | int pcix_get_max_mmrbc(struct pci_dev *dev) |
1385 | { | 1385 | { |
1386 | int ret, err, cap; | 1386 | int err, cap; |
1387 | u32 stat; | 1387 | u32 stat; |
1388 | 1388 | ||
1389 | cap = pci_find_capability(dev, PCI_CAP_ID_PCIX); | 1389 | cap = pci_find_capability(dev, PCI_CAP_ID_PCIX); |
@@ -1394,9 +1394,7 @@ int pcix_get_max_mmrbc(struct pci_dev *dev) | |||
1394 | if (err) | 1394 | if (err) |
1395 | return -EINVAL; | 1395 | return -EINVAL; |
1396 | 1396 | ||
1397 | ret = (stat & PCI_X_STATUS_MAX_READ) >> 12; | 1397 | return (stat & PCI_X_STATUS_MAX_READ) >> 12; |
1398 | |||
1399 | return ret; | ||
1400 | } | 1398 | } |
1401 | EXPORT_SYMBOL(pcix_get_max_mmrbc); | 1399 | EXPORT_SYMBOL(pcix_get_max_mmrbc); |
1402 | 1400 | ||