ubifs: Implement ubifs_lpt_lookup using ubifs_pnode_lookup
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 7 Sep 2018 12:36:27 +0000 (14:36 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 23 Oct 2018 11:48:21 +0000 (13:48 +0200)
commite635cf8c3bbd7b9bd3e282156c6cc4f818b72ee9
treefbb160a3565fd646297943f514b0837f22a4c53d
parent0e26b6e2551e21df72c140e46819523e1b686009
ubifs: Implement ubifs_lpt_lookup using ubifs_pnode_lookup

ubifs_lpt_lookup() starts by looking up the nth pnode in the LPT. We
already have this functionality in ubifs_pnode_lookup(). Use this
function rather than open coding its functionality.

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