Commit 58d5aaea authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by David S. Miller

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 41fc1e0f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment