Skip to content

Commit

Permalink
PM / devfreq: Fix incorrect usage of IS_ERR_OR_NULL in exynos5_bus.c
Browse files Browse the repository at this point in the history
platform_device_register_simple does not return NULL.
Hence NULL check is not required.

Signed-off-by: Sachin Kamat <[email protected]>
Acked-by: MyungJoo Ham <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
  • Loading branch information
Sachin Kamat authored and myungjoo committed Oct 28, 2013
1 parent 959f585 commit 8ab8831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/devfreq/exynos/exynos5_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ static int __init exynos5_busfreq_int_init(void)

exynos5_devfreq_pdev =
platform_device_register_simple("exynos5-bus-int", -1, NULL, 0);
if (IS_ERR_OR_NULL(exynos5_devfreq_pdev)) {
if (IS_ERR(exynos5_devfreq_pdev)) {
ret = PTR_ERR(exynos5_devfreq_pdev);
goto out1;
}
Expand Down

0 comments on commit 8ab8831

Please sign in to comment.