Skip to content

Commit

Permalink
UBIFS: Add missing break statements in dbg_chk_pnode()
Browse files Browse the repository at this point in the history
This is a minor fix. These two branches in 'dbg_chk_pnode()'
are dealing with different conditions. Although there is
no fault in current state, I think adding "break"s in
each end of branch is better.

Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
hujianyang authored and Artem Bityutskiy committed Jul 19, 2014
1 parent 5a95741 commit ce6ebdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ubifs/lpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,7 @@ static int dbg_chk_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
lprops->dirty);
return -EINVAL;
}
break;
case LPROPS_FREEABLE:
case LPROPS_FRDI_IDX:
if (lprops->free + lprops->dirty != c->leb_size) {
Expand All @@ -2206,6 +2207,7 @@ static int dbg_chk_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
lprops->dirty);
return -EINVAL;
}
break;
}
}
return 0;
Expand Down

0 comments on commit ce6ebdb

Please sign in to comment.