Skip to content

Commit

Permalink
udf: Remove redundant initialization of variable ret
Browse files Browse the repository at this point in the history
After commit 9293fcf ("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>
  • Loading branch information
Jing Xiangfeng authored and Jan Kara committed Sep 22, 2020
1 parent 8859bf2 commit aa9f666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa9f666

Please sign in to comment.