Commit f8bce79d authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland
Browse files

fs: dlm: don't check othercon twice



This patch removes an another check if con->othercon set inside the
branch which already does that.

Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent cbba2116
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1497,7 +1497,6 @@ int dlm_lowcomms_close(int nodeid)
	call_srcu(&connections_srcu, &con->rcu, connection_release);
	if (con->othercon) {
		clean_one_writequeue(con->othercon);
		if (con->othercon)
		call_srcu(&connections_srcu, &con->othercon->rcu, connection_release);
	}
	srcu_read_unlock(&connections_srcu, idx);