/* This function returns the znode or a negative error code.  */
static struct ubifs_znode* get_znode(struct ubifs_info *c, struct ubifs_znode *znode, int n)
/* This function returns the znode or a negative error code.  */
static struct ubifs_znode* get_znode(struct ubifs_info *c, struct ubifs_znode *znode, int n)
{
	struct ubifs_zbranch *zbr;
	zbr = &znode->zbranch[n];
	if (zbr->znode)
		znode = zbr->znode;
	else
		znode = ubifs_load_znode(c, zbr, znode, n);
	return znode;
}