Skip to content

Commit ce6ebdb

Browse files
hujianyangdedekind
authored andcommitted
UBIFS: Add missing break statements in dbg_chk_pnode()
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>
1 parent 5a95741 commit ce6ebdb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/ubifs/lpt.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,7 @@ static int dbg_chk_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
21982198
lprops->dirty);
21992199
return -EINVAL;
22002200
}
2201+
break;
22012202
case LPROPS_FREEABLE:
22022203
case LPROPS_FRDI_IDX:
22032204
if (lprops->free + lprops->dirty != c->leb_size) {
@@ -2206,6 +2207,7 @@ static int dbg_chk_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
22062207
lprops->dirty);
22072208
return -EINVAL;
22082209
}
2210+
break;
22092211
}
22102212
}
22112213
return 0;

0 commit comments

Comments
 (0)