Skip to content

Commit

Permalink
Merge tag 'gpmc-omap-for-v4.18' of https://github.com/rogerq/linux in…
Browse files Browse the repository at this point in the history
…to next/drivers

OMAP-GPMC: driver updates for v4.18
* get rid of a redundant NULL check in gpmc_probe_dt_children()

* tag 'gpmc-omap-for-v4.18' of https://github.com/rogerq/linux:
  memory: omap-gpmc: Avoid redundant NULL check

Signed-off-by: Olof Johansson <[email protected]>
  • Loading branch information
olofj committed May 14, 2018
2 parents 71fe67e + d507178 commit 7a0b861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/memory/omap-gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7a0b861

Please sign in to comment.