Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/marvell Style.



details:   https://anonhg.NetBSD.org/src/rev/f68931136647
branches:  trunk
changeset: 343540:f68931136647
user:      hikaru <hikaru%NetBSD.org@localhost>
date:      Sat Feb 13 06:12:46 2016 +0000

description:
Style.

diffstat:

 sys/dev/marvell/if_mvxpe.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1baa22e62c9e -r f68931136647 sys/dev/marvell/if_mvxpe.c
--- a/sys/dev/marvell/if_mvxpe.c        Sat Feb 13 06:02:31 2016 +0000
+++ b/sys/dev/marvell/if_mvxpe.c        Sat Feb 13 06:12:46 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mvxpe.c,v 1.8 2016/02/13 06:02:31 hikaru Exp $      */
+/*     $NetBSD: if_mvxpe.c,v 1.9 2016/02/13 06:12:46 hikaru Exp $      */
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.8 2016/02/13 06:02:31 hikaru Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.9 2016/02/13 06:12:46 hikaru Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -2622,7 +2622,7 @@
        if (r->status & MVXPE_RX_L3_IP) {
                csum_flags |= M_CSUM_IPv4 & ifp->if_csum_flags_rx;
                if ((r->status & MVXPE_RX_IP_HEADER_OK) == 0 &&
-                   (csum_flags & M_CSUM_IPv4)) {
+                   (csum_flags & M_CSUM_IPv4) != 0) {
                        csum_flags |= M_CSUM_IPv4_BAD;
                        goto finish;
                }
@@ -2654,7 +2654,7 @@
                break;
        }
        if ((r->status & MVXPE_RX_L4_CHECKSUM_OK) == 0 && (csum_flags &
-           (M_CSUM_TCPv4 | M_CSUM_TCPv6 | M_CSUM_UDPv4 | M_CSUM_UDPv6)))
+           (M_CSUM_TCPv4 | M_CSUM_TCPv6 | M_CSUM_UDPv4 | M_CSUM_UDPv6)) != 0)
                csum_flags |= M_CSUM_TCP_UDP_BAD;
 finish:
        m0->m_pkthdr.csum_flags = csum_flags;



Home | Main Index | Thread Index | Old Index