From f4f50e976f4bac73e7cf060b8168f89250c804fe Mon Sep 17 00:00:00 2001 From: brabo Date: Wed, 26 Feb 2025 17:13:28 +0100 Subject: [PATCH] Removed two superfluous return statements from void type functions --- src/wolfip.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/wolfip.c b/src/wolfip.c index fd97fab..c0e8dce 100644 --- a/src/wolfip.c +++ b/src/wolfip.c @@ -745,7 +745,7 @@ static void tcp_send_empty(struct tsocket *t, uint8_t flags) static void tcp_send_ack(struct tsocket *t) { - return tcp_send_empty(t, 0x10); + tcp_send_empty(t, 0x10); } static void tcp_send_finack(struct tsocket *t) @@ -788,7 +788,7 @@ static void tcp_send_syn(struct tsocket *t, uint8_t flags) static void tcp_send_synack(struct tsocket *t) { - return tcp_send_syn(t, 0x12); + tcp_send_syn(t, 0x12); } /* Add a segment to the rx buffer for the application to consume */ @@ -1408,7 +1408,7 @@ int wolfIP_sock_sendto(struct wolfIP *s, int sockfd, const void *buf, size_t len int wolfIP_sock_send(struct wolfIP *s, int sockfd, const void *buf, size_t len, int flags) { return wolfIP_sock_sendto(s, sockfd, buf, len, flags, NULL, 0); -} +} int wolfIP_sock_write(struct wolfIP *s, int sockfd, const void *buf, size_t len) { @@ -2286,4 +2286,3 @@ void wolfIP_ipconfig_get(struct wolfIP *s, ip4 *ip, ip4 *mask, ip4 *gw) *mask = s->ipconf.mask; *gw = s->ipconf.gw; } -