Date: Sat, 9 Jan 2016 05:39:06 +0000 (UTC) From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r293465 - head/sys/net Message-ID: <201601090539.u095d6kK040908@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: melifaro Date: Sat Jan 9 05:39:06 2016 New Revision: 293465 URL: https://svnweb.freebsd.org/changeset/base/293465 Log: Please Coverity by removing unneccessary check (rt_key() is always set). Coverity CID: 1347797 Modified: head/sys/net/route.c Modified: head/sys/net/route.c ============================================================================== --- head/sys/net/route.c Sat Jan 9 05:07:02 2016 (r293464) +++ head/sys/net/route.c Sat Jan 9 05:39:06 2016 (r293465) @@ -858,7 +858,7 @@ rt_exportinfo(struct rtentry *rt, struct 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601090539.u095d6kK040908>