can: c_can: fix error checking of priv->instance in probe()
[deliverable/linux.git] / drivers / net / can / c_can / c_can_platform.c
index c6f838d922a51b3883f1dea9ba26f2e0a9c63c4b..294ced3cc227520883c6ebe50ac255634d0f0f7c 100644 (file)
@@ -195,7 +195,7 @@ static int c_can_plat_probe(struct platform_device *pdev)
 
                res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
                priv->raminit_ctrlreg = devm_ioremap_resource(&pdev->dev, res);
-               if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0)
+               if (IS_ERR(priv->raminit_ctrlreg) || (int)priv->instance < 0)
                        dev_info(&pdev->dev, "control memory is not used for raminit\n");
                else
                        priv->raminit = c_can_hw_raminit;
This page took 0.023665 seconds and 5 git commands to generate.