fix statement with no effect (Dave Tyson)

This commit is contained in:
christos 2014-04-13 12:42:47 +00:00
parent 78921906eb
commit b2dc35d4a2
1 changed files with 3 additions and 3 deletions

View File

@ -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 *sme, envsys_data_t *edata,
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);