From: Liao Pingfang Date: Tue, 14 Jul 2020 02:04:32 +0000 (+0800) Subject: msg: Remove superfluous breaks X-Git-Tag: v16.1.0~1604^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=04db016e77f753309cb96e1f4c576c28cb3175e5;p=ceph.git msg: Remove superfluous breaks Remove superfuous breaks, as there is a 'return' before them. Signed-off-by: Liao Pingfang --- diff --git a/src/msg/msg_types.h b/src/msg/msg_types.h index 837474ec239..0ed764a923c 100644 --- a/src/msg/msg_types.h +++ b/src/msg/msg_types.h @@ -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; }