Module Name:    src
Committed By:   kamil
Date:           Wed Jun  6 20:05:36 UTC 2018

Modified Files:
        src/sys/dev/pci: svwsata.c

Log Message:
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>


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/pci/svwsata.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/svwsata.c
diff -u src/sys/dev/pci/svwsata.c:1.22 src/sys/dev/pci/svwsata.c:1.23
--- src/sys/dev/pci/svwsata.c:1.22	Fri Jun  1 18:14:33 2018
+++ src/sys/dev/pci/svwsata.c	Wed Jun  6 20:05:36 2018
@@ -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 @@ svwsata_intr(void *arg)
 			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);
 		}

Reply via email to