]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/dlm/lowcomms.c
fs/dlm: Drop unnecessary null test
[net-next-2.6.git] / fs / dlm / lowcomms.c
index c0d35c620526bc0d202dd843867e05b8dbf44c7b..37a34c2c622a12525927956223dcb79c80d000a5 100644 (file)
@@ -248,7 +248,7 @@ static struct connection *assoc2con(int assoc_id)
 
        for (i = 0 ; i < CONN_HASH_SIZE; i++) {
                hlist_for_each_entry(con, h, &connection_hash[i], list) {
-                       if (con && con->sctp_assoc == assoc_id) {
+                       if (con->sctp_assoc == assoc_id) {
                                mutex_unlock(&connections_lock);
                                return con;
                        }