summaryrefslogtreecommitdiff
path: root/fs/ubifs/sb.c
diff options
context:
space:
mode:
authorhujianyang <hujianyang@huawei.com>2014-06-11 06:42:52 +0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2014-07-19 10:53:51 +0400
commitb793a8c8885d87d9867fb2dbfdc1ef7b5877d71b (patch)
tree01da1e3301a8a93f1804b0136440b36eee17ec3c /fs/ubifs/sb.c
parentce6ebdb87ef94b332fa0bfafd62830bf50e6e2c6 (diff)
downloadlinux-b793a8c8885d87d9867fb2dbfdc1ef7b5877d71b.tar.xz
UBIFS: remove useless statements
This patch removes useless and duplicate statements. Signed-off-by: hujianyang <hujianyang@huawei.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/sb.c')
-rw-r--r--fs/ubifs/sb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c
index 4c37607a958e..c2c3d13efa1c 100644
--- a/fs/ubifs/sb.c
+++ b/fs/ubifs/sb.c
@@ -447,7 +447,7 @@ static int validate_sb(struct ubifs_info *c, struct ubifs_sb_node *sup)
goto failed;
}
- if (c->default_compr < 0 || c->default_compr >= UBIFS_COMPR_TYPES_CNT) {
+ if (c->default_compr >= UBIFS_COMPR_TYPES_CNT) {
err = 13;
goto failed;
}