projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8859bf2
)
udf: Remove redundant initialization of variable ret
author
Jing Xiangfeng
<jingxiangfeng@huawei.com>
Tue, 22 Sep 2020 08:13:22 +0000
(16:13 +0800)
committer
Jan Kara
<jack@suse.cz>
Tue, 22 Sep 2020 09:22:04 +0000
(11:22 +0200)
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>
fs/udf/super.c
patch
|
blob
|
history
diff --git
a/fs/udf/super.c
b/fs/udf/super.c
index
d9eabbe
..
8b38145
100644
(file)
--- 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);