]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/simple/Pipe: remove no-op statements
authorKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 04:45:12 +0000 (12:45 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 05:12:47 +0000 (13:12 +0800)
addresses CID 1400658:  Incorrect expression  (NO_EFFECT)

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

index 4afd1a13e27391d1e146b41b1861154b1f0a5d99..ef90d04b81be07e783bd18c59f0b8912ff6f73bc 100644 (file)
@@ -427,9 +427,6 @@ int Pipe::accept()
       goto fail_unlocked;
     }
 
-    // sanitize features
-    connect.features = connect.features;
-
     authorizer.clear();
     if (connect.authorizer_len) {
       bp = buffer::create(connect.authorizer_len);
@@ -1161,9 +1158,6 @@ int Pipe::connect()
       goto fail;
     }
 
-    // sanitize features
-    reply.features = reply.features;
-
     ldout(msgr->cct,20) << "connect got reply tag " << (int)reply.tag
                        << " connect_seq " << reply.connect_seq
                        << " global_seq " << reply.global_seq