ubifs: Drop unnecessary setting of zbr->znode
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 26 Mar 2019 08:05:32 +0000 (09:05 +0100)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 19:58:32 +0000 (21:58 +0200)
in dbg_walk_index ubifs_load_znode is used to load the znode behind
a zbranch. ubifs_load_znode links the new child znode to the zbranch,
so doing it again is unnecessary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/debug.c

index c49ff50..3a26130 100644 (file)
@@ -1603,7 +1603,6 @@ int dbg_walk_index(struct ubifs_info *c, dbg_leaf_callback leaf_cb,
                                err = PTR_ERR(child);
                                goto out_unlock;
                        }
-                       zbr->znode = child;
                }
 
                znode = child;