[PATCH] x86, olpc: Cocci spatch "ptr_ret.spatch"
From: Thomas Meyer
Date: Sat Jun 01 2013 - 05:53:52 EST
Signed-off-by: Thomas Meyer <thomas@xxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/