From 4bdc5ed1cffdfae4f594d4a35b3ac44e220ad543 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 22 Dec 2015 23:40:36 +0000 Subject: [PATCH] udp_send.c: Remove pointless function. udp_init_session() has only one caller in the same file. --- udp_send.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/udp_send.c b/udp_send.c index 3379f98d..faae208c 100644 --- a/udp_send.c +++ b/udp_send.c @@ -156,11 +156,6 @@ err: return -ERRNO_TO_PARA_ERROR(errno); } -static void udp_init_session(struct sender_client *sc) -{ - PARA_NOTICE_LOG("sending to udp %s\n", sc->name); -} - static void udp_shutdown_targets(void) { struct sender_client *sc, *tmp; @@ -239,7 +234,7 @@ static int udp_init_fec(struct sender_client *sc) { int mps; - udp_init_session(sc); + PARA_NOTICE_LOG("sending to udp %s\n", sc->name); mps = generic_max_transport_msg_size(sc->fd) - sizeof(struct udphdr); PARA_INFO_LOG("current MPS = %d bytes\n", mps); return mps; -- 2.39.5