diff options
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r-- | sys/netinet/raw_ip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index b39e693..b6cf708 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -635,7 +635,7 @@ rip_pcbdetach(struct socket *so, struct inpcb *inp) in_pcbdetach(inp); } -static int +static void rip_detach(struct socket *so) { struct inpcb *inp; @@ -645,12 +645,11 @@ rip_detach(struct socket *so) if (inp == 0) { /* XXX counter, printf */ INP_INFO_WUNLOCK(&ripcbinfo); - return EINVAL; + return; } INP_LOCK(inp); rip_pcbdetach(so, inp); INP_INFO_WUNLOCK(&ripcbinfo); - return 0; } static void |