Minor code cleanup; no functional changes.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25232
This commit is contained in:
Edward Tomasz Napierala 2020-06-12 14:23:10 +00:00
parent 92390644e3
commit 4beacc3b1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362101
2 changed files with 3 additions and 12 deletions

View File

@ -92,10 +92,9 @@ static int
linux_to_bsd_sockopt_level(int level)
{
switch (level) {
case LINUX_SOL_SOCKET:
if (level == LINUX_SOL_SOCKET)
return (SOL_SOCKET);
}
/* Remaining values are RFC-defined protocol numbers. */
return (level);
}
@ -103,10 +102,8 @@ static int
bsd_to_linux_sockopt_level(int level)
{
switch (level) {
case SOL_SOCKET:
if (level == SOL_SOCKET)
return (LINUX_SOL_SOCKET);
}
return (level);
}

View File

@ -170,12 +170,6 @@ int linux_accept(struct thread *td, struct linux_accept_args *args);
/* Socket defines */
#define LINUX_SOL_SOCKET 1
#define LINUX_SOL_IP 0
#define LINUX_SOL_TCP 6
#define LINUX_SOL_UDP 17
#define LINUX_SOL_IPV6 41
#define LINUX_SOL_IPX 256
#define LINUX_SOL_AX25 257
#define LINUX_SO_DEBUG 1
#define LINUX_SO_REUSEADDR 2