Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci remove needless parens, makes clang happy



details:   https://anonhg.NetBSD.org/src/rev/4bc770e08565
branches:  trunk
changeset: 446853:4bc770e08565
user:      roy <roy%NetBSD.org@localhost>
date:      Sat Dec 22 20:57:44 2018 +0000

description:
remove needless parens, makes clang happy

diffstat:

 sys/dev/pci/if_ena.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 4e0f8bca7f9f -r 4bc770e08565 sys/dev/pci/if_ena.c
--- a/sys/dev/pci/if_ena.c      Sat Dec 22 20:49:19 2018 +0000
+++ b/sys/dev/pci/if_ena.c      Sat Dec 22 20:57:44 2018 +0000
@@ -31,7 +31,7 @@
 #if 0
 __FBSDID("$FreeBSD: head/sys/dev/ena/ena.c 333456 2018-05-10 09:37:54Z mw $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.11 2018/11/30 14:07:30 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.12 2018/12/22 20:57:44 roy Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1595,7 +1595,7 @@
 {
 
        /* IPv4 */
-       if ((ena_rx_ctx->l3_proto == ENA_ETH_IO_L3_PROTO_IPV4)) {
+       if (ena_rx_ctx->l3_proto == ENA_ETH_IO_L3_PROTO_IPV4) {
                mbuf->m_pkthdr.csum_flags |= M_CSUM_IPv4;
                if (ena_rx_ctx->l3_csum_err) {
                        /* ipv4 checksum error */
@@ -1618,7 +1618,7 @@
                }
        }
        /* IPv6 */
-       else if ((ena_rx_ctx->l3_proto == ENA_ETH_IO_L3_PROTO_IPV6)) {
+       else if (ena_rx_ctx->l3_proto == ENA_ETH_IO_L3_PROTO_IPV6) {
                /*  TCP/UDP */
                if ((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) ||
                    (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP)) {



Home | Main Index | Thread Index | Old Index