]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: keystone: Remove unnecessary goto statement
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 11 Apr 2016 14:50:31 +0000 (10:50 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 25 Apr 2016 19:23:54 +0000 (14:23 -0500)
commit1e9f8dcf892ddb183405cb2414bfc37b40300693
treea7438ee70398150cc85ee6804c932ced3110e79c
parent025dd3daeda77f61a280da87ae7015a6808dfe1f
PCI: keystone: Remove unnecessary goto statement

Fix the misuse of goto statement in ks_pcie_get_irq_controller_info() as
simple return is more appropriate for this function.  While at it add an
error log for absence of interrupt controller node.

[bhelgaas: drop "ret" altogether since we always know the return value]
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Rob Herring <robh+dt@kernel.org>
CC: Pawel Moll <pawel.moll@arm.com>
CC: Mark Rutland <mark.rutland@arm.com>
CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
CC: Kumar Gala <galak@codeaurora.org>
drivers/pci/host/pci-keystone.c