hw/ppc: use 0 instead of fdt_path_offset(fdt, "/")
commita4f3885c7496fa3c5af8ad849f2ec55d9214d66c
authorGreg Kurz <groug@kaod.org>
Tue, 3 Oct 2017 14:13:11 +0000 (3 16:13 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Oct 2017 23:34:00 +0000 (17 10:34 +1100)
tree4a6f9089538d8367203f6008a59eb4546f0b2cb1
parentc2a0125a8331ed92adbaaea5f43a71fda678c9b9
hw/ppc: use 0 instead of fdt_path_offset(fdt, "/")

The offset of the root node is guaranteed to be 0.

This doesn't fix anything, it's just trivial cleanup of the two
remaining places where this was done under hw/ppc.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
hw/ppc/spapr.c