提交 d507178f 编写于 作者: R Roger Quadros

memory: omap-gpmc: Avoid redundant NULL check

child->name cannot be NULL as we're already checking for it
in gpmc_probe_dt_children()
Signed-off-by: NRoger Quadros <rogerq@ti.com>
上级 60cc43fc
......@@ -2060,8 +2060,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
* timings.
*/
name = gpmc_cs_get_name(cs);
if (name && child->name && of_node_cmp(child->name, name) == 0)
goto no_timings;
if (name && of_node_cmp(child->name, name) == 0)
goto no_timings;
ret = gpmc_cs_request(cs, resource_size(&res), &base);
if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册