Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: aerdrv_acpi.c: remove unneeded NULL check

There's no reason for checking pdev->bus for being NULL here (and we'd
anyway Oops 3 lines below if it was).

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Adrian Bunk and committed by
Greg Kroah-Hartman
d75b3052 bc043274

+1 -1
+1 -1
drivers/pci/pcie/aer/aerdrv_acpi.c
··· 37 37 return -1; 38 38 39 39 /* Find root host bridge */ 40 - while (pdev->bus && pdev->bus->self) 40 + while (pdev->bus->self) 41 41 pdev = pdev->bus->self; 42 42 handle = acpi_get_pci_rootbridge_handle( 43 43 pci_domain_nr(pdev->bus), pdev->bus->number);