From: hujianyang <hujianyang@huawei.com>
Date: Wed, 11 Jun 2014 02:41:17 +0000 (+0800)
Subject: UBIFS: Add missing break statements in dbg_chk_pnode()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce6ebdb87ef94b332fa0bfafd62830bf50e6e2c6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

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>
---

diff --git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c
index d46b19ec1815..b4fb422e5b8d 100644
--- a/fs/ubifs/lpt.c
+++ b/fs/ubifs/lpt.c
@@ -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) {
@@ -2206,6 +2207,7 @@ static int dbg_chk_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
 					  lprops->dirty);
 				return -EINVAL;
 			}
+			break;
 		}
 	}
 	return 0;