UBIFS: remove unneeded unlikely()
IS_ERR() macro already has unlikely(), so do not use constructions like 'if (unlikely(IS_ERR())'. Signed-off-by: Hirofumi Nakagawa <hnakagawa@miraclelinux.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Este commit está contenido en:

cometido por
Artem Bityutskiy

padre
948cfb219b
commit
8d47aef43b
@@ -901,11 +901,11 @@ static int get_idx_gc_leb(struct ubifs_info *c)
|
||||
* it is needed now for this commit.
|
||||
*/
|
||||
lp = ubifs_lpt_lookup_dirty(c, lnum);
|
||||
if (unlikely(IS_ERR(lp)))
|
||||
if (IS_ERR(lp))
|
||||
return PTR_ERR(lp);
|
||||
lp = ubifs_change_lp(c, lp, LPROPS_NC, LPROPS_NC,
|
||||
lp->flags | LPROPS_INDEX, -1);
|
||||
if (unlikely(IS_ERR(lp)))
|
||||
if (IS_ERR(lp))
|
||||
return PTR_ERR(lp);
|
||||
dbg_find("LEB %d, dirty %d and free %d flags %#x",
|
||||
lp->lnum, lp->dirty, lp->free, lp->flags);
|
||||
|
Referencia en una nueva incidencia
Block a user