projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
476af91
)
orangefs: remove unnecessary assignment to variable ret
author
Jing Xiangfeng
<jingxiangfeng@huawei.com>
Fri, 17 Jul 2020 09:52:59 +0000
(17:52 +0800)
committer
Mike Marshall
<hubcap@omnibond.com>
Tue, 4 Aug 2020 19:01:58 +0000
(15:01 -0400)
The variable ret is guaranteed to be 0 in this if (). So we can remove
this assignement.
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-mod.c
patch
|
blob
|
history
diff --git
a/fs/orangefs/orangefs-mod.c
b/fs/orangefs/orangefs-mod.c
index
289b648
..
74a3d63
100644
(file)
--- a/
fs/orangefs/orangefs-mod.c
+++ b/
fs/orangefs/orangefs-mod.c
@@
-149,7
+149,6
@@
static int __init orangefs_init(void)
pr_info("%s: module version %s loaded\n",
__func__,
ORANGEFS_VERSION);
- ret = 0;
goto out;
}