Commit c180d710 authored by Dan Carpenter's avatar Dan Carpenter Committed by Olof Johansson
Browse files

soc: ixp4xx: qmgr: Fix an NULL vs IS_ERR() check in probe



The devm_ioremap_resource() function doesn't retunr NULL, it returns
error pointers.

Fixes: ecc133c6 ("soc: ixp4xx: qmgr: Pass resources")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent ab02888e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -385,8 +385,8 @@ static int ixp4xx_qmgr_probe(struct platform_device *pdev)
	if (!res)
		return -ENODEV;
	qmgr_regs = devm_ioremap_resource(dev, res);
	if (!qmgr_regs)
		return -ENOMEM;
	if (IS_ERR(qmgr_regs))
		return PTR_ERR(qmgr_regs);

	irq1 = platform_get_irq(pdev, 0);
	if (irq1 <= 0)