]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/fsl_msi: fix error return code in fsl_of_msi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 13:46:36 +0000 (21:46 +0800)
committerScott Wood <scottwood@freescale.com>
Tue, 30 Jul 2013 20:50:08 +0000 (15:50 -0500)
Fix to return a negative error code in the MSI bitmap alloc error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/fsl_msi.c

index ab02db3d02d8f89cd684b0f370db403c5a24d1e3..f45556aa884c70127c5bbc75a476c9d9f62f67e9 100644 (file)
@@ -370,7 +370,6 @@ static int fsl_of_msi_probe(struct platform_device *dev)
        struct fsl_msi *msi;
        struct resource res;
        int err, i, j, irq_index, count;
-       int rc;
        const u32 *p;
        const struct fsl_msi_feature *features;
        int len;
@@ -431,8 +430,8 @@ static int fsl_of_msi_probe(struct platform_device *dev)
         */
        msi->phandle = dev->dev.of_node->phandle;
 
-       rc = fsl_msi_init_allocator(msi);
-       if (rc) {
+       err = fsl_msi_init_allocator(msi);
+       if (err) {
                dev_err(&dev->dev, "Error allocating MSI bitmap\n");
                goto error_out;
        }