]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: Remove superfluous breaks 36079/head
authorLiao Pingfang <liao.pingfang@zte.com.cn>
Tue, 14 Jul 2020 02:04:32 +0000 (10:04 +0800)
committerLiao Pingfang <liao.pingfang@zte.com.cn>
Tue, 14 Jul 2020 02:04:32 +0000 (10:04 +0800)
Remove superfuous breaks, as there is a 'return' before them.

Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
src/msg/msg_types.h

index 837474ec2397bfce9b3901f1a3fec2ea77097160..0ed764a923c3728b6d00e6c3bdca78932e33f0f6 100644 (file)
@@ -368,10 +368,8 @@ struct entity_addr_t {
     switch (u.sa.sa_family) {
     case AF_INET:
       return ntohs(u.sin.sin_port);
-      break;
     case AF_INET6:
       return ntohs(u.sin6.sin6_port);
-      break;
     }
     return 0;
   }