diff mbox

[1/1] arch/sh/kernel/time.c: use PTR_ERR_OR_ZERO

Message ID 1404499648-14414-1-git-send-email-fabf@skynet.be (mailing list archive)
State Awaiting Upstream
Headers show

Commit Message

Fabian Frederick July 4, 2014, 6:47 p.m. UTC
replace IS_ERR/PTR_ERR

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---

This is untested.

 arch/sh/kernel/time.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox

Patch

diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c
index 552c8fc..d6d0a98 100644
--- a/arch/sh/kernel/time.c
+++ b/arch/sh/kernel/time.c
@@ -80,10 +80,8 @@  static int __init rtc_generic_init(void)
 		return -ENODEV;
 
 	pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
-	if (IS_ERR(pdev))
-		return PTR_ERR(pdev);
 
-	return 0;
+	return PTR_ERR_OR_ZERO(pdev);
 }
 module_init(rtc_generic_init);