提交 58d5aaea 编写于 作者: X xypron.glpk@gmx.de 提交者: 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: NHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册