diff options
author | Sam Leffler <sam@FreeBSD.org> | 2005-02-25 22:58:25 +0000 |
---|---|---|
committer | Sam Leffler <sam@FreeBSD.org> | 2005-02-25 22:58:25 +0000 |
commit | ba1a42195caf6013f8fa27d8624bf19aeab67772 (patch) | |
tree | 40785e5d041397d133250061c88c0dfee98f9bad /sys/netinet6 | |
parent | a74985cdd4d00da10d13579ee9be190c336a5b8b (diff) | |
download | src-ba1a42195caf6013f8fa27d8624bf19aeab67772.tar.gz src-ba1a42195caf6013f8fa27d8624bf19aeab67772.zip |
remove dead code
Noticed by: Coverity Prevent analysis tool
Notes
Notes:
svn path=/head/; revision=142520
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ipsec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/ipsec.c b/sys/netinet6/ipsec.c index 07d97341d68a..960d96c7106a 100644 --- a/sys/netinet6/ipsec.c +++ b/sys/netinet6/ipsec.c @@ -2455,15 +2455,15 @@ ipsec4_logpacketstr(ip, spi) p = buf; snprintf(buf, sizeof(buf), "packet(SPI=%u ", (u_int32_t)ntohl(spi)); - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), "src=%u.%u.%u.%u", s[0], s[1], s[2], s[3]); - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), " dst=%u.%u.%u.%u", d[0], d[1], d[2], d[3]); - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), ")"); |