summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2016-01-09 05:39:06 +0000
committermelifaro <melifaro@FreeBSD.org>2016-01-09 05:39:06 +0000
commitff6e5f3297d4154b415bafd909da107571ae1228 (patch)
tree2aa6fe4229d7b3a9a47645448d6860032d89cc41 /sys/net
parent01cafd61f08265a509c71b38ad4863c4723f2d34 (diff)
downloadFreeBSD-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.c2
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);
OpenPOWER on IntegriCloud