* [PATCH] rbd: Cocci spatch "ptr_ret.spatch"
@ 2013-06-01 9:58 Thomas Meyer
0 siblings, 0 replies; only message in thread
From: Thomas Meyer @ 2013-06-01 9:58 UTC (permalink / raw)
To: linux-kernel
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
diff -u -p a/drivers/block/rbd.c b/drivers/block/rbd.c
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -4466,7 +4466,7 @@ static int rbd_dev_image_id(struct rbd_d
image_id = ceph_extract_encoded_string(&p, p + ret,
NULL, GFP_NOIO);
- ret = IS_ERR(image_id) ? PTR_ERR(image_id) : 0;
+ ret = PTR_RET(image_id);
if (!ret)
rbd_dev->image_format = 2;
} else {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-01 9:58 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:58 [PATCH] rbd: 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