X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fubifs%2Flpt_commit.c;h=d12535b7fc789dda7c473593aacfc6816afc90be;hb=5cf65713f87775c548e3eb48dbafa32e12f28000;hp=13cb7a4237bf474fa19a9161edd838c214c07c28;hpb=d71f4cece4bd97d05592836202fc04ff2e7817e3;p=karo-tx-linux.git diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c index 13cb7a4237bf..d12535b7fc78 100644 --- a/fs/ubifs/lpt_commit.c +++ b/fs/ubifs/lpt_commit.c @@ -646,7 +646,7 @@ static struct ubifs_pnode *pnode_lookup(struct ubifs_info *c, int i) shft -= UBIFS_LPT_FANOUT_SHIFT; nnode = ubifs_get_nnode(c, nnode, iip); if (IS_ERR(nnode)) - return ERR_PTR(PTR_ERR(nnode)); + return ERR_CAST(nnode); } iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); return ubifs_get_pnode(c, nnode, iip);