]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: tegra: pcie: 0 -> NULL changes
authorOlof Johansson <olof@lixom.net>
Fri, 9 Sep 2011 01:11:46 +0000 (18:11 -0700)
committerOlof Johansson <olof@lixom.net>
Wed, 12 Oct 2011 23:25:53 +0000 (16:25 -0700)
Fixes:

arch/arm/mach-tegra/pcie.c:465:10: warning: Using plain integer as NULL pointer

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-tegra/pcie.c

index f7c89ee5a7e21fe4c1eda0397d6721877b0c216a..f5aa173c26b320ac3a8b46688ab00ea2d51dd317 100644 (file)
@@ -462,7 +462,7 @@ static struct pci_bus __init *tegra_pcie_scan_bus(int nr,
        struct tegra_pcie_port *pp;
 
        if (nr >= tegra_pcie.num_ports)
-               return 0;
+               return NULL;
 
        pp = tegra_pcie.port + nr;
        pp->root_bus_nr = sys->busnr;