Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

src: Remove useless comment and style.



details:   https://anonhg.NetBSD.org/src/rev/9bf51a946d4d
branches:  trunk
changeset: 318135:9bf51a946d4d
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Apr 13 09:00:29 2018 +0000
description:
Remove useless comment and style.

diffstat:

 sys/netinet/ip_output.c |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (36 lines):

diff -r 0ed0411184e1 -r 9bf51a946d4d sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Fri Apr 13 08:55:50 2018 +0000
+++ b/sys/netinet/ip_output.c   Fri Apr 13 09:00:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.301 2018/04/13 08:47:46 maxv Exp $     */
+/*     $NetBSD: ip_output.c,v 1.302 2018/04/13 09:00:29 maxv Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.301 2018/04/13 08:47:46 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.302 2018/04/13 09:00:29 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -980,13 +980,11 @@
        offset += M_CSUM_DATA_IPv4_OFFSET(m->m_pkthdr.csum_data);
 
        if ((offset + sizeof(u_int16_t)) > m->m_len) {
-               /* This happen when ip options were inserted
-               printf("in_delayed_cksum: pullup len %d off %d proto %d\n",
-                   m->m_len, offset, ip->ip_p);
-                */
-               m_copyback(m, offset, sizeof(csum), (void *) &csum);
-       } else
+               /* This happens when ip options were inserted */
+               m_copyback(m, offset, sizeof(csum), (void *)&csum);
+       } else {
                *(u_int16_t *)(mtod(m, char *) + offset) = csum;
+       }
 }
 
 /*



Home | Main Index | Thread Index | Old Index