summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-02-23 01:17:45 +0000
committerkib <kib@FreeBSD.org>2015-02-23 01:17:45 +0000
commit6485f99c19b6079d268bf34d84f5b5bd431c428e (patch)
tree6c177eb3ee9c50b2b1ca3d2d84b4f976c12316c4
parent8f182b4e4aba9350d6d771ac6a00ca36061ccb92 (diff)
downloadFreeBSD-src-6485f99c19b6079d268bf34d84f5b5bd431c428e.zip
FreeBSD-src-6485f99c19b6079d268bf34d84f5b5bd431c428e.tar.gz
MFC r278871:
Array cannot be NULL, remove always true comparision.
-rw-r--r--sys/dev/acpica/acpi_pcib.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c
index c4bded8..93dada5 100644
--- a/sys/dev/acpica/acpi_pcib.c
+++ b/sys/dev/acpica/acpi_pcib.c
@@ -95,7 +95,7 @@ prt_attach_devices(ACPI_PCI_ROUTING_TABLE *entry, void *arg)
int error;
/* We only care about entries that reference a link device. */
- if (entry->Source == NULL || entry->Source[0] == '\0')
+ if (entry->Source[0] == '\0')
return;
/*
@@ -222,7 +222,7 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
if (bootverbose) {
device_printf(pcib, "matched entry for %d.%d.INT%c",
pci_get_bus(dev), pci_get_slot(dev), 'A' + pin);
- if (prt->Source != NULL && prt->Source[0] != '\0')
+ if (prt->Source[0] != '\0')
printf(" (src %s:%u)", prt->Source, prt->SourceIndex);
printf("\n");
}
@@ -234,8 +234,7 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
* XXX: If the source index is non-zero, ignore the source device and
* assume that this is a hard-wired entry.
*/
- if (prt->Source == NULL || prt->Source[0] == '\0' ||
- prt->SourceIndex != 0) {
+ if (prt->Source[0] == '\0' || prt->SourceIndex != 0) {
if (bootverbose)
device_printf(pcib, "slot %d INT%c hardwired to IRQ %d\n",
pci_get_slot(dev), 'A' + pin, prt->SourceIndex);
OpenPOWER on IntegriCloud