“d2db9aaa4a5b9f2a1d54080c13f5ff4fc6d0ae1b”上不存在“arch/arm/plat-mxc/include/mach/irqs.h”
提交 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,7 +233,6 @@ static int b53_mmap_probe(struct platform_device *pdev) ...@@ -233,7 +233,6 @@ static int b53_mmap_probe(struct platform_device *pdev)
if (!dev) if (!dev)
return -ENOMEM; return -ENOMEM;
if (pdata)
dev->pdata = pdata; dev->pdata = pdata;
platform_set_drvdata(pdev, dev); platform_set_drvdata(pdev, dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册