summaryrefslogtreecommitdiff
path: root/fs/udf
diff options
context:
space:
mode:
authorJing Xiangfeng <jingxiangfeng@huawei.com>2020-09-22 16:13:22 +0800
committerJan Kara <jack@suse.cz>2020-09-22 11:22:04 +0200
commitaa9f6661eddd342e8d7a621a805beb7354d8d8f9 (patch)
treeec905e17a402292c1728b7b0a5384961e27ee642 /fs/udf
parent8859bf2b1278d064a139e3031451524a49a56bd0 (diff)
downloadlwn-aa9f6661eddd342e8d7a621a805beb7354d8d8f9.tar.gz
lwn-aa9f6661eddd342e8d7a621a805beb7354d8d8f9.zip
udf: Remove redundant initialization of variable ret
After commit 9293fcfbc181 ("udf: Remove struct ustr as non-needed intermediate storage"), the variable ret is being initialized with '-ENOMEM' that is meaningless. So remove it. Link: https://lore.kernel.org/r/20200922081322.70535-1-jingxiangfeng@huawei.com Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index d9eabbe368ff..8b381456482d 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -854,7 +854,7 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block)
uint8_t *outstr;
struct buffer_head *bh;
uint16_t ident;
- int ret = -ENOMEM;
+ int ret;
struct timestamp *ts;
outstr = kmalloc(128, GFP_NOFS);