rtadvd: Remove return statement at the end of void functions

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Elyes Haouas 2023-11-03 18:44:50 +01:00 committed by Mitchell Horne
parent fd9a4a67d0
commit be5a2c70b1
5 changed files with 0 additions and 20 deletions

View file

@ -1548,5 +1548,4 @@ make_packet(struct rainfo *rai)
syslog(LOG_DEBUG, "<%s>: nd_opt_dnssl_len = %d", __func__,
ndopt_dnssl->nd_opt_dnssl_len);
}
return;
}

View file

@ -143,8 +143,6 @@ lladdropt_fill(struct sockaddr_dl *sdl, struct nd_opt_hdr *ndopt)
__func__, sdl->sdl_type);
exit(1);
}
return;
}
int

View file

@ -431,7 +431,6 @@ rr_command_input(int len, struct icmp6_router_renum *rr,
failed:
syslog(LOG_ERR, "<%s> received RR was invalid", __func__);
return;
}
void
@ -499,6 +498,4 @@ rr_input(int len, struct icmp6_router_renum *rr, struct in6_pktinfo *pi,
break;
}
return;
}

View file

@ -704,8 +704,6 @@ rtmsg_input(struct sockinfo *s)
set_short_delay(ifi);
}
}
return;
}
void
@ -897,8 +895,6 @@ rtadvd_input(struct sockinfo *s)
syslog(LOG_ERR, "invalid icmp type(%d)", icp->icmp6_type);
return;
}
return;
}
static void
@ -990,7 +986,6 @@ rs_input(int len, struct nd_router_solicit *rs,
done:
free_ndopts(&ndopts);
return;
}
static void
@ -1220,7 +1215,6 @@ ra_input(int len, struct nd_router_advert *nra,
done:
free_ndopts(&ndopts);
return;
}
static uint32_t
@ -1612,8 +1606,6 @@ sock_open(struct sockinfo *s)
sndmhdr.msg_iovlen = 1;
sndmhdr.msg_control = (caddr_t)sndcmsgbuf;
sndmhdr.msg_controllen = sndcmsgbuflen;
return;
}
/* open a routing socket to watch the routing table */
@ -1915,6 +1907,4 @@ ra_timer_update(void *arg, struct timespec *tm)
"<%s> RA timer on %s is set to %ld:%ld",
__func__, ifi->ifi_ifname,
(long int)tm->tv_sec, (long int)tm->tv_nsec / 1000);
return;
}

View file

@ -99,8 +99,6 @@ rtadvd_update_timeout_handler(void)
break;
}
}
return;
}
struct rtadvd_timer *
@ -195,6 +193,4 @@ rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *rat)
/* update the next expiration time */
if (TS_CMP(&rat->rat_tm, &tm_max, <))
tm_max = rat->rat_tm;
return;
}