summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorThomas Nordin <nordin@cvs.openbsd.org>2002-06-11 06:04:18 +0000
committerThomas Nordin <nordin@cvs.openbsd.org>2002-06-11 06:04:18 +0000
commit0a4997159bdc8575735cd6b831dd3b6a13f5439d (patch)
tree6e68801678ab10f75190940277acbb473d716e15 /sys/dev
parent7dead3fdf5c5ae2dcd24076c6a84f113d5f1cd19 (diff)
abs() is defined by ANSI C -- don't use a macro for it. ok niklas@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/sv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/sv.c b/sys/dev/pci/sv.c
index 2931916fba7..787f0b49059 100644
--- a/sys/dev/pci/sv.c
+++ b/sys/dev/pci/sv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sv.c,v 1.13 2002/03/14 03:16:06 millert Exp $ */
+/* $OpenBSD: sv.c,v 1.14 2002/06/11 06:04:17 nordin Exp $ */
/*
* Copyright (c) 1998 Constantine Paul Sapuntzakis
@@ -750,8 +750,6 @@ sv_set_params(addr, setmode, usemode, p, r)
#define F_REF 24576000
-#define ABS(x) (((x) < 0) ? (-x) : (x))
-
if (setmode & AUMODE_RECORD)
{
/* The ADC reference frequency (f_out) is 512 * the sample rate */
@@ -790,7 +788,7 @@ sv_set_params(addr, setmode, usemode, p, r)
/* Threshold might be good here */
error = pll_sample - r->sample_rate;
- error = ABS(error);
+ error = abs(error);
if (error < best_error) {
best_error = error;