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

parent
db38f290ca
commit
09652b00cd
@@ -62,10 +62,7 @@ static int __init add_rtc(void)
|
||||
pd = platform_device_register_simple("rtc_cmos", -1,
|
||||
&res[0], num_res);
|
||||
|
||||
if (IS_ERR(pd))
|
||||
return PTR_ERR(pd);
|
||||
|
||||
return 0;
|
||||
return PTR_RET(pd);
|
||||
}
|
||||
fs_initcall(add_rtc);
|
||||
|
||||
|
Reference in New Issue
Block a user