diff options
author | Dongwoo Lee <dwoo08.lee@samsung.com> | 2016-08-16 11:14:22 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:52:28 +0900 |
commit | d883d3221625f7193a7b21890b11de764778f749 (patch) | |
tree | 5cab900d709793431803795ec16ee7d81fc9a50f /drivers | |
parent | 09f5605627bf94ae5a6824a718c3e1aecfa93eeb (diff) |
power: max77843_charger: fix not to check null for max77843_charger_dt_init()
In order to check error of max77843_charger_dt_init(), IS_ERR()
should be used instead of IS_ERR_OR_NULL() because it never returns
NULL.
Change-Id: Icac4e707bf269fcb40c8f7289930684c6912f048
Suggested-by: Sylwester Nawrocki <a.nawrocki@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/max77843_charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/max77843_charger.c b/drivers/power/max77843_charger.c index d61907f4f0c5..ed8df6fb9fd1 100644 --- a/drivers/power/max77843_charger.c +++ b/drivers/power/max77843_charger.c @@ -533,7 +533,7 @@ static int max77843_charger_probe(struct platform_device *pdev) return ret; charger->info = max77843_charger_dt_init(pdev); - if (IS_ERR_OR_NULL(charger->info)) + if (IS_ERR(charger->info)) return PTR_ERR(charger->info); |