Skip to content

Commit

Permalink
ocfs2: remove redundant initialization of variable ret
Browse files Browse the repository at this point in the history
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")
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Changwei Ge <[email protected]>
Cc: Gang He <[email protected]>
Cc: Jun Piao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Colin Ian King authored and torvalds committed Jun 29, 2021
1 parent f0f798d commit 7ed6d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/cluster/nodemanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ static void __exit exit_o2nm(void)

static int __init init_o2nm(void)
{
int ret = -1;
int ret;

o2hb_init();

Expand Down

0 comments on commit 7ed6d4e

Please sign in to comment.