Module Name:    src
Committed By:   joerg
Date:           Thu Feb 27 01:31:09 UTC 2014

Modified Files:
        src/sys/external/isc/atheros_hal/dist/ar5212: ar5212_reset.c

Log Message:
abs on unsigned values is a nop.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/sys/external/isc/atheros_hal/dist/ar5212/ar5212_reset.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/external/isc/atheros_hal/dist/ar5212/ar5212_reset.c
diff -u src/sys/external/isc/atheros_hal/dist/ar5212/ar5212_reset.c:1.4 src/sys/external/isc/atheros_hal/dist/ar5212/ar5212_reset.c:1.5
--- src/sys/external/isc/atheros_hal/dist/ar5212/ar5212_reset.c:1.4	Mon Mar  7 11:25:43 2011
+++ src/sys/external/isc/atheros_hal/dist/ar5212/ar5212_reset.c	Thu Feb 27 01:31:09 2014
@@ -14,7 +14,7 @@
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  *
- * $Id: ar5212_reset.c,v 1.4 2011/03/07 11:25:43 cegger Exp $
+ * $Id: ar5212_reset.c,v 1.5 2014/02/27 01:31:09 joerg Exp $
  */
 #include "opt_ah.h"
 
@@ -2510,7 +2510,7 @@ ar5212GetLowerUpperValues(uint16_t v, ui
 		 * If value is close to the current value of the list
 		 * then target is not between values, it is one of the values
 		 */
-		if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) {
+		if (lp[0] * EEP_SCALE - target < EEP_DELTA) {
 			*vlo = *vhi = lp[0];
 			return;
 		}

Reply via email to