Skip to content

Commit d8f1875

Browse files
Colin Ian Kingtorvalds
authored andcommitted
ocfs2/dlm: remove redundant assignment to ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses Coverity ("Unused value") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Colin Ian King <[email protected]> Reviewed-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]>
1 parent ca322fb commit d8f1875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ocfs2/dlm/dlmrecovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ static int dlm_lockres_master_requery(struct dlm_ctxt *dlm,
16681668
int dlm_do_master_requery(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
16691669
u8 nodenum, u8 *real_master)
16701670
{
1671-
int ret = -EINVAL;
1671+
int ret;
16721672
struct dlm_master_requery req;
16731673
int status = DLM_LOCK_RES_OWNER_UNKNOWN;
16741674

0 commit comments

Comments
 (0)