diff options
author | melifaro <melifaro@FreeBSD.org> | 2016-01-09 05:39:06 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2016-01-09 05:39:06 +0000 |
commit | ff6e5f3297d4154b415bafd909da107571ae1228 (patch) | |
tree | 2aa6fe4229d7b3a9a47645448d6860032d89cc41 /sys/net | |
parent | 01cafd61f08265a509c71b38ad4863c4723f2d34 (diff) | |
download | FreeBSD-src-ff6e5f3297d4154b415bafd909da107571ae1228.zip FreeBSD-src-ff6e5f3297d4154b415bafd909da107571ae1228.tar.gz |
Please Coverity by removing unneccessary check (rt_key() is always set).
Coverity CID: 1347797
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index e09cc23..4df9690 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -858,7 +858,7 @@ rt_exportinfo(struct rtentry *rt, struct rt_addrinfo *info, int flags) src = rt_key(rt); dst = info->rti_info[RTAX_DST]; sa_len = src->sa_len; - if (src != NULL && dst != NULL) { + if (dst != NULL) { if (src->sa_len > dst->sa_len) return (ENOMEM); memcpy(dst, src, src->sa_len); |