Commit aa9f6661 authored by Jing Xiangfeng's avatar Jing Xiangfeng Committed by Jan Kara

udf: Remove redundant initialization of variable ret

After commit 9293fcfb ("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.comSigned-off-by: default avatarJing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 8859bf2b
...@@ -854,7 +854,7 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block) ...@@ -854,7 +854,7 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block)
uint8_t *outstr; uint8_t *outstr;
struct buffer_head *bh; struct buffer_head *bh;
uint16_t ident; uint16_t ident;
int ret = -ENOMEM; int ret;
struct timestamp *ts; struct timestamp *ts;
outstr = kmalloc(128, GFP_NOFS); outstr = kmalloc(128, GFP_NOFS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment