Commit d507178f authored by Roger Quadros's avatar Roger Quadros
Browse files

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: default avatarRoger Quadros <rogerq@ti.com>
parent 60cc43fc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2060,7 +2060,7 @@ 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)
	if (name && of_node_cmp(child->name, name) == 0)
		goto no_timings;

	ret = gpmc_cs_request(cs, resource_size(&res), &base);