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: Roger Quadros <rogerq@ti.com>
This commit is contained in:
Roger Quadros
2018-04-20 13:02:49 +03:00
parent 60cc43fc88
commit d507178f2e
+1 -1
View File
@@ -2060,7 +2060,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
* timings. * timings.
*/ */
name = gpmc_cs_get_name(cs); name = gpmc_cs_get_name(cs);
if (name && child->name && of_node_cmp(child->name, name) == 0) if (name && of_node_cmp(child->name, name) == 0)
goto no_timings; goto no_timings;
ret = gpmc_cs_request(cs, resource_size(&res), &base); ret = gpmc_cs_request(cs, resource_size(&res), &base);