Skip to contentSkip to conversation

orangefs: remove unnecessary assignment to variable ret

PATCH New Jing Xiangfeng 1 participant 1 message Jul 17, 2020 Orangefs filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 orangefs: remove unnecessary assignment to variable ret

The variable ret is guaranteed to be 0 in this if (). So we can remove this assignement.

---
 fs/orangefs/orangefs-mod.c | 1 -
 1 file changed, 1 deletion(-)
fs/orangefs/orangefs-mod.c +0 -1
index 289b648ae196..74a3d6337ef4 100644
@@ -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;
 	}
 
Signature · 1 line
2.17.1