summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/super.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-08-11 15:58:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-09-13 12:07:55 +0200
commit55b50d3576a23f06657c94d7b3f70c99b9136932 (patch)
treef86770fcc45571977aad4af056d8948f50e14290 /fs/ubifs/super.c
parent1c370d39a457e3b3908248ba9e54b3f01241c62c (diff)
downloadbarebox-55b50d3576a23f06657c94d7b3f70c99b9136932.tar.gz
barebox-55b50d3576a23f06657c94d7b3f70c99b9136932.tar.xz
fs: ubifs: remove always-false check
GCC correctly warns that two bit wide compr_type can't exceed or be equal to UBIFS_COMPR_TYPES_CNT (== 4). Remove the check. The check is there in the kernel as well, but the warning is disabled there. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220811135804.271071-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r--fs/ubifs/super.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index b48e21fae6..6a0074bd1a 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -86,11 +86,6 @@ static int validate_inode(struct ubifs_info *c, const struct inode *inode)
return 1;
}
- if (ui->compr_type >= UBIFS_COMPR_TYPES_CNT) {
- ubifs_err(c, "unknown compression type %d", ui->compr_type);
- return 2;
- }
-
if (ui->xattr_names + ui->xattr_cnt > XATTR_LIST_MAX)
return 3;