Skip to content

Commit d507178

Browse files
author
Roger Quadros
committed
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>
1 parent 60cc43f commit d507178

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/memory/omap-gpmc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,8 +2060,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
20602060
* timings.
20612061
*/
20622062
name = gpmc_cs_get_name(cs);
2063-
if (name && child->name && of_node_cmp(child->name, name) == 0)
2064-
goto no_timings;
2063+
if (name && of_node_cmp(child->name, name) == 0)
2064+
goto no_timings;
20652065

20662066
ret = gpmc_cs_request(cs, resource_size(&res), &base);
20672067
if (ret < 0) {

0 commit comments

Comments
 (0)