Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/x86/platform/olpc/olpc.c b/arch/x86/platform/olpc/olpc.c --- a/arch/x86/platform/olpc/olpc.c +++ b/arch/x86/platform/olpc/olpc.c @@ -311,10 +311,7 @@ static int __init add_xo1_platform_devic return PTR_ERR(pdev); pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0); - if (IS_ERR(pdev)) - return PTR_ERR(pdev); - - return 0; + return PTR_RET(pdev); } static int olpc_xo1_ec_probe(struct platform_device *pdev)
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/