Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Enhance the syntax in order to be acceptable by ...



details:   https://anonhg.NetBSD.org/src/rev/fcab16517742
branches:  trunk
changeset: 323280:fcab16517742
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 06 20:05:36 2018 +0000

description:
Enhance the syntax in order to be acceptable by Clang

Replace "((crv == 0))" with "(crv == 0)", as the intention is to check the
value, whether it is equal to 0.

This fixes kernel=GENERIC build under MKLLVM=yes.

Sponsored by <The NetBSD Foundation>

diffstat:

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

diffs (27 lines):

diff -r 48e332c7ea69 -r fcab16517742 sys/dev/pci/svwsata.c
--- a/sys/dev/pci/svwsata.c     Wed Jun 06 20:02:31 2018 +0000
+++ b/sys/dev/pci/svwsata.c     Wed Jun 06 20:05:36 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svwsata.c,v 1.22 2018/06/01 18:14:33 macallan Exp $    */
+/*     $NetBSD: svwsata.c,v 1.23 2018/06/06 20:05:36 kamil Exp $       */
 
 /*
  * Copyright (c) 2005 Mark Kettenis
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svwsata.c,v 1.22 2018/06/01 18:14:33 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svwsata.c,v 1.23 2018/06/06 20:05:36 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -369,7 +369,7 @@
                        continue;
                }
                crv = wdcintr(wdc_cp);
-               if ((crv == 0)) {
+               if (crv == 0) {
                        bus_space_write_1(sc->sc_dma_iot, 
                            cp->dma_iohs[IDEDMA_CTL], 0, dmastat);
                }



Home | Main Index | Thread Index | Old Index