Module Name:    src
Committed By:   maya
Date:           Sat Dec 10 17:41:44 UTC 2016

Modified Files:
        src/sys/dev/isa: cms.c

Log Message:
Be explicit about precedence of operators
Appeases clang when building an ALL kernel


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/isa/cms.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/isa/cms.c
diff -u src/sys/dev/isa/cms.c:1.21 src/sys/dev/isa/cms.c:1.22
--- src/sys/dev/isa/cms.c:1.21	Mon Apr  9 10:18:16 2012
+++ src/sys/dev/isa/cms.c	Sat Dec 10 17:41:44 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: cms.c,v 1.21 2012/04/09 10:18:16 plunky Exp $ */
+/* $NetBSD: cms.c,v 1.22 2016/12/10 17:41:44 maya Exp $ */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.21 2012/04/09 10:18:16 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.22 2016/12/10 17:41:44 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -261,7 +261,7 @@ cms_on(midisyn *ms, uint_fast16_t vidx, 
 
 	/* set the volume */
 	/* this may be the wrong curve but will do something. no docs! */
-	vol = 15 + (level_cB > -75) ? level_cB/5 : -15;
+	vol = 15 + ((level_cB > -75) ? level_cB/5 : -15);
 	CMS_WRITE(sc, chip, CMS_IREG_VOL0 + voice, ((vol<<4)|vol));
 
 	/* enable the voice */

Reply via email to