dsa: b53: remove redundant if
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 11:42:33 +0000 (13:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2016 20:32:53 +0000 (13:32 -0700)
For pdata == null the code leaves with an error.
There is no need to check the condition again.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_mmap.c

index 21f1068b080414e5ba0206cfa7f2439ac1c933a8..77ffc431280855adee1604668ab84ebd9bb07a76 100644 (file)
@@ -233,8 +233,7 @@ static int b53_mmap_probe(struct platform_device *pdev)
        if (!dev)
                return -ENOMEM;
 
-       if (pdata)
-               dev->pdata = pdata;
+       dev->pdata = pdata;
 
        platform_set_drvdata(pdev, dev);