[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1370080418.29224.26.camel@localhost.localdomain>
Date: Sat, 01 Jun 2013 11:53:38 +0200
From: Thomas Meyer <thomas@...3r.de>
To: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, grant.likely@...aro.org, rob.herring@...xeda.com,
linux-kernel@...r.kernel.org
Subject: [PATCH] x86, olpc: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@...3r.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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists