Skip to content

Commit aa9f666

Browse files
hiss2018jankara
authored andcommitted
udf: Remove redundant initialization of variable ret
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/[email protected] Signed-off-by: Jing Xiangfeng <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent 8859bf2 commit aa9f666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/udf/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block)
854854
uint8_t *outstr;
855855
struct buffer_head *bh;
856856
uint16_t ident;
857-
int ret = -ENOMEM;
857+
int ret;
858858
struct timestamp *ts;
859859

860860
outstr = kmalloc(128, GFP_NOFS);

0 commit comments

Comments
 (0)