summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJoel Schopp <jschopp@austin.ibm.com>2005-08-12 02:39:28 +0400
committerPaul Mackerras <paulus@samba.org>2005-08-30 07:42:33 +0400
commit5ff98ae18bec792d77bfea801aa4b3385b98b355 (patch)
treed96e431da57f63a33f42a5ed6067b7e490365c3e /arch
parent717522ff44f1fbee5ea09e83d7cd4b5c956e30f9 (diff)
downloadlinux-5ff98ae18bec792d77bfea801aa4b3385b98b355.tar.xz
[PATCH] ppc64: of_device.c remove useless code
Coverity found more unused code. Signed-off-by: Joel Schopp <jschopp@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc64/kernel/of_device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/of_device.c b/arch/ppc64/kernel/of_device.c
index b80e81984ba8..da580812ddfe 100644
--- a/arch/ppc64/kernel/of_device.c
+++ b/arch/ppc64/kernel/of_device.c
@@ -236,7 +236,6 @@ void of_device_unregister(struct of_device *ofdev)
struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id)
{
struct of_device *dev;
- u32 *reg;
dev = kmalloc(sizeof(*dev), GFP_KERNEL);
if (!dev)
@@ -250,7 +249,6 @@ struct of_device* of_platform_device_create(struct device_node *np, const char *
dev->dev.bus = &of_platform_bus_type;
dev->dev.release = of_release_dev;
- reg = (u32 *)get_property(np, "reg", NULL);
strlcpy(dev->dev.bus_id, bus_id, BUS_ID_SIZE);
if (of_device_register(dev) != 0) {