summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2021-02-11 15:42:44 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-02-15 21:41:33 +0000
commit4a0041107b8ef77e0e8337bfcb5f8078887261a7 (patch)
tree1b8e21b729270f69957b69d39c2bf23a69efdbae
parent42d77fb767a4764cde29cefb7da41165c959e519 (diff)
downloadqemu-openbios-4a0041107b8ef77e0e8337bfcb5f8078887261a7.tar.gz
pci: Rename pci_xbox_blacklisted() as pci_xbox_ignore_device()
In order to use inclusive terminology, rename pci_xbox_blacklisted() as pci_xbox_ignore_device(), and remove an obvious comment. Suggested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--drivers/pci.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/pci.c b/drivers/pci.c
index ef9a2da7..f30e427b 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -1356,7 +1356,7 @@ static void ob_pci_add_properties(phandle_t phandle,
}
#ifdef CONFIG_XBOX
-static char pci_xbox_blacklisted (int bus, int devnum, int fn)
+static char pci_xbox_ignore_device (int bus, int devnum, int fn)
{
/*
* The Xbox MCPX chipset is a derivative of the nForce 1
@@ -1387,9 +1387,6 @@ static char pci_xbox_blacklisted (int bus, int devnum, int fn)
if (bus >= 2)
return 1;
- /*
- * The device is not blacklisted.
- */
return 0;
}
#endif
@@ -1708,7 +1705,7 @@ static int ob_pci_read_identification(int bus, int devnum, int fn,
pci_addr addr;
#ifdef CONFIG_XBOX
- if (pci_xbox_blacklisted (bus, devnum, fn))
+ if (pci_xbox_ignore_device (bus, devnum, fn))
return;
#endif
addr = PCI_ADDR(bus, devnum, fn);