diff options
author | Roger Quadros <rogerq@ti.com> | 2018-04-20 13:02:49 +0300 |
---|---|---|
committer | Roger Quadros <rogerq@ti.com> | 2018-04-24 10:30:52 +0300 |
commit | d507178f2ebb7bde5b3f64557f1c8f80e7b82541 (patch) | |
tree | 9cc36934a7e7d54af46b6794f34b01ed1dd572ea /drivers/memory | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) | |
download | op-kernel-dev-d507178f2ebb7bde5b3f64557f1c8f80e7b82541.zip op-kernel-dev-d507178f2ebb7bde5b3f64557f1c8f80e7b82541.tar.gz |
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>
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/omap-gpmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index 90a66b3..c215287 100644 --- a/drivers/memory/omap-gpmc.c +++ b/drivers/memory/omap-gpmc.c @@ -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) { |