Fix clang-tidy readability-redundant-control-flow warnings
This commit is contained in:
@@ -177,13 +177,11 @@ void SendStuff (Ptr<Socket> sock, Ipv4Address dstaddr, uint16_t port)
|
||||
Ptr<Packet> p = Create<Packet> ();
|
||||
p->AddPaddingAtEnd (100);
|
||||
sock->SendTo (p, 0, InetSocketAddress (dstaddr,port));
|
||||
return;
|
||||
}
|
||||
|
||||
void BindSock (Ptr<Socket> sock, Ptr<NetDevice> netdev)
|
||||
{
|
||||
sock->BindToNetDevice (netdev);
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -192,7 +192,6 @@ main (int argc, char *argv[])
|
||||
void BindSock (Ptr<Socket> sock, Ptr<NetDevice> netdev)
|
||||
{
|
||||
sock->BindToNetDevice (netdev);
|
||||
return;
|
||||
}
|
||||
|
||||
void StartFlow (Ptr<Socket> localSocket,
|
||||
|
||||
Reference in New Issue
Block a user