Skip to content

Commit

Permalink
[PATCH] ppc64: of_device.c remove useless code
Browse files Browse the repository at this point in the history
Coverity found more unused code.

Signed-off-by: Joel Schopp <jschopp@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Joel Schopp authored and Paul Mackerras committed Aug 30, 2005
1 parent 717522f commit 5ff98ae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/ppc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) {
Expand Down

0 comments on commit 5ff98ae

Please sign in to comment.