diff options
author | mux <mux@FreeBSD.org> | 2003-07-25 12:23:25 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-07-25 12:23:25 +0000 |
commit | 1c6aeeb40b89803babba4fa4918658eff42c35e6 (patch) | |
tree | 458b4aa8c252021cd62163e45d8a1f9bd419bacf /lib | |
parent | 8bcb5ee8721f6cea6e2949d39f8f5ff78587d854 (diff) | |
download | FreeBSD-src-1c6aeeb40b89803babba4fa4918658eff42c35e6.zip FreeBSD-src-1c6aeeb40b89803babba4fa4918658eff42c35e6.tar.gz |
An u_int8_t can never be bigger than 255, so remove a useless check.
Spotted by: GCC
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/ip6opt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/net/ip6opt.c b/lib/libc/net/ip6opt.c index bbd7891..a26e45d 100644 --- a/lib/libc/net/ip6opt.c +++ b/lib/libc/net/ip6opt.c @@ -111,8 +111,6 @@ inet6_option_append(cmsg, typep, multx, plusy) return(-1); if (plusy < 0 || plusy > 7) return(-1); - if (typep[0] > 255) - return(-1); /* * If this is the first option, allocate space for the |