Skip to content

Commit f8bce79

Browse files
Alexander Aringteigland
authored andcommitted
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: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
1 parent cbba211 commit f8bce79

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/dlm/lowcomms.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,8 +1497,7 @@ int dlm_lowcomms_close(int nodeid)
14971497
call_srcu(&connections_srcu, &con->rcu, connection_release);
14981498
if (con->othercon) {
14991499
clean_one_writequeue(con->othercon);
1500-
if (con->othercon)
1501-
call_srcu(&connections_srcu, &con->othercon->rcu, connection_release);
1500+
call_srcu(&connections_srcu, &con->othercon->rcu, connection_release);
15021501
}
15031502
srcu_read_unlock(&connections_srcu, idx);
15041503

0 commit comments

Comments
 (0)