dsa: b53: remove redundant if

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>
This commit is contained in:
xypron.glpk@gmx.de 2016-07-31 13:42:33 +02:00 committed by David S. Miller
parent 41fc1e0fe2
commit 58d5aaea05

View 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);