]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 May 2016 06:45:42 +0000 (09:45 +0300)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 22 Jun 2016 04:52:55 +0000 (13:52 +0900)
commit4f1c181af3dfcafa52d35c8a403474a60d5db375
tree85a614f26acb314ff5325fb0f9b4ea10f954a86a
parent667bc3458090cd3026e5207a4c72e8b59d1952d3
PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check

Smatch complains because platform_get_resource() returns NULL on error
and not an error pointer so the check is wrong.  Julia Lawall pointed
out that normally we don't check these, because devm_ioremap_resource()
has a check for NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/event/exynos-nocp.c