* [PATCH] DCA: Cocci spatch "ptr_ret.spatch"
@ 2013-06-01 9:46 Thomas Meyer
0 siblings, 0 replies; only message in thread
From: Thomas Meyer @ 2013-06-01 9:46 UTC (permalink / raw)
To: linux-kernel
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
diff -u -p a/drivers/dca/dca-sysfs.c b/drivers/dca/dca-sysfs.c
--- a/drivers/dca/dca-sysfs.c
+++ b/drivers/dca/dca-sysfs.c
@@ -40,9 +40,7 @@ int dca_sysfs_add_req(struct dca_provide
cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL,
"requester%d", req_count++);
- if (IS_ERR(cd))
- return PTR_ERR(cd);
- return 0;
+ return PTR_RET(cd);
}
void dca_sysfs_remove_req(struct dca_provider *dca, int slot)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-01 9:46 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:46 [PATCH] DCA: 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
all inboxes | Powered by JetHome®