Module Name:    src
Committed By:   christos
Date:           Sun Apr 13 12:42:47 UTC 2014

Modified Files:
        src/sys/dev/i2c: w83795g.c

Log Message:
fix statement with no effect (Dave Tyson)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/w83795g.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/i2c/w83795g.c
diff -u src/sys/dev/i2c/w83795g.c:1.1 src/sys/dev/i2c/w83795g.c:1.2
--- src/sys/dev/i2c/w83795g.c:1.1	Tue Aug  6 11:58:25 2013
+++ src/sys/dev/i2c/w83795g.c	Sun Apr 13 08:42:47 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: w83795g.c,v 1.1 2013/08/06 15:58:25 soren Exp $	*/
+/*	$NetBSD: w83795g.c,v 1.2 2014/04/13 12:42:47 christos Exp $	*/
 
 /*
  * Copyright (c) 2013 Soren S. Jorvang.  All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: w83795g.c,v 1.1 2013/08/06 15:58:25 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: w83795g.c,v 1.2 2014/04/13 12:42:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -339,7 +339,7 @@ w83795g_get_limits(struct sysmon_envsys 
 		index = W83795G_FHL1LSB + (sensor->msb - W83795G_FANIN1) / 2;
 		iic_smbus_read_byte(sc->sc_tag, sc->sc_addr, index, &lsb, 0);
 		if (index % 2)
-			lsb >> 4;
+			lsb >>= 4;
 		else
 			lsb &= 0xf;
 		limits->sel_warnmin = 1350000 / (msb << 4 | lsb);

Reply via email to