ACPI, PCI, irq: remove redundant check for null string pointer
authorColin Ian King <colin.king@canonical.com>
Tue, 5 Jan 2016 10:57:11 +0000 (10:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Apr 2018 09:51:56 +0000 (11:51 +0200)
commiteafd4e604f12c5d0ce70746c8aff944de8a10d81
tree6c5b6393659349fc624c4612e7f2e174abbe4bed
parentdd26ec7f47749633439d0a623299a04de5e63bca
ACPI, PCI, irq: remove redundant check for null string pointer

commit 45288978859119c019eff93f0cb838a0de100bcc upstream.

source is decleared as a 4 byte char array in struct acpi_pci_routing_table
so !prt->source is a redundant null string pointer check. Detected with
smatch:

drivers/acpi/pci_irq.c:134 do_prt_fixups() warn: this array is probably
  non-NULL. 'prt->source'

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/pci_irq.c