mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86, olpc: Cocci spatch "ptr_ret.spatch"
@ 2013-06-01  9:53 Thomas Meyer
  0 siblings, 0 replies; only message in thread
From: Thomas Meyer @ 2013-06-01  9:53 UTC (permalink / raw)
  To: tglx, mingo, hpa, x86, grant.likely, rob.herring, linux-kernel


Signed-off-by: Thomas Meyer <thomas@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)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-01  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-01  9:53 [PATCH] x86, olpc: Cocci spatch "ptr_ret.spatch" Thomas Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome