]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/AsyncConnection: remove no-ops
authorKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 04:49:12 +0000 (12:49 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 05:12:48 +0000 (13:12 +0800)
addresses CID 1400656:  Incorrect expression  (NO_EFFECT)

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/async/AsyncConnection.cc

index e5b39f1d4c33c1343682afea810b42b40c46bcf3..0dc74d35d135a4520eecc56b5b5d4a4f37e72047 100644 (file)
@@ -1074,7 +1074,6 @@ ssize_t AsyncConnection::_process_connection()
         }
 
         connect_reply = *((ceph_msg_connect_reply*)state_buffer);
-        connect_reply.features = connect_reply.features;
 
         ldout(async_msgr->cct, 20) << __func__ << " connect got reply tag " << (int)connect_reply.tag
                              << " connect_seq " << connect_reply.connect_seq << " global_seq "
@@ -1286,8 +1285,6 @@ ssize_t AsyncConnection::_process_connection()
         }
 
         connect_msg = *((ceph_msg_connect*)state_buffer);
-        // sanitize features
-        connect_msg.features = connect_msg.features;
         state = STATE_ACCEPTING_WAIT_CONNECT_MSG_AUTH;
         break;
       }