[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>

authored by

Joel Schopp and committed by
Paul Mackerras
5ff98ae1 717522ff

-2
-2
arch/ppc64/kernel/of_device.c
··· 236 236 struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id) 237 237 { 238 238 struct of_device *dev; 239 - u32 *reg; 240 239 241 240 dev = kmalloc(sizeof(*dev), GFP_KERNEL); 242 241 if (!dev) ··· 249 250 dev->dev.bus = &of_platform_bus_type; 250 251 dev->dev.release = of_release_dev; 251 252 252 - reg = (u32 *)get_property(np, "reg", NULL); 253 253 strlcpy(dev->dev.bus_id, bus_id, BUS_ID_SIZE); 254 254 255 255 if (of_device_register(dev) != 0) {