[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1370080565.29224.29.camel@localhost.localdomain>
Date: Sat, 01 Jun 2013 11:56:05 +0200
From: Thomas Meyer <thomas@...3r.de>
To: rusty@...tcorp.com.au, mst@...hat.com, grant.likely@...aro.org,
rob.herring@...xeda.com, virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] virtio-mmio: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@...3r.de>
---
diff -u -p a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
--- a/drivers/virtio/virtio_mmio.c
+++ b/drivers/virtio/virtio_mmio.c
@@ -567,10 +567,7 @@ static int vm_cmdline_set(const char *de
pdev = platform_device_register_resndata(&vm_cmdline_parent,
"virtio-mmio", vm_cmdline_id++,
resources, ARRAY_SIZE(resources), NULL, 0);
- if (IS_ERR(pdev))
- return PTR_ERR(pdev);
-
- return 0;
+ return PTR_RET(pdev);
}
static int vm_cmdline_get_device(struct device *dev, void *data)
--
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