ocfs2: remove redundant initialization of variable ret
Subsystems (2)
PATCH 1/1 ocfs2: remove redundant initialization of variable ret
From: Colin Ian King <[email protected]>
The variable ret is being initialized with a value that is never read, the assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- fs/ocfs2/cluster/nodemanager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/cluster/nodemanager.c +1 -1
@@ -824,7 +824,7 @@ static void __exit exit_o2nm(void)static int __init init_o2nm (void ) { -int ret =-1 ; +int ret;o2hb_init ();
Signature · 1 line
2.31.1
Quoted 7 lines · Colin King
From: Colin Ian King <[email protected]>
The variable ret is being initialized with a value that is never read, the assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
Acked-by Joseph Qi <[email protected]>
Quoted 10 lines
--- fs/ocfs2/cluster/nodemanager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ocfs2/cluster/nodemanager.c +0
-0
fs/ocfs2/cluster/nodemanager.c static void __exit exit_o2nm(void) · line 830
Quoted 8 lines
fs/ocfs2/cluster/nodemanager.c +1
-1@@ -824,7 +824,7 @@ static void __exit exit_o2nm(void)static int __init init_o2nm (void ) { -int ret =-1 ; +int ret;o2hb_init ();
_______________________________________________
Ocfs2-devel mailing list
[email protected]
https://oss.oracle.com/mailman/listinfo/ocfs2-devel