powerpc: Use PTR_RET instead of IS_ERR/PTR_ERR
Signed-off-by: Adrian-Leonard Radu <ady8radu@gmail.com> Acked-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

부모
db38f290ca
커밋
09652b00cd
@@ -89,10 +89,8 @@ static int __init ps3_rtc_init(void)
|
||||
return -ENODEV;
|
||||
|
||||
pdev = platform_device_register_simple("rtc-ps3", -1, NULL, 0);
|
||||
if (IS_ERR(pdev))
|
||||
return PTR_ERR(pdev);
|
||||
|
||||
return 0;
|
||||
return PTR_RET(pdev);
|
||||
}
|
||||
|
||||
module_init(ps3_rtc_init);
|
||||
|
Reference in New Issue
Block a user