From 5b61e403a2a06af46db7cd6c320695af2b9a4906 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 13 May 2008 22:16:27 +0000 Subject: [PATCH] don't play with timevals directly, use the macros. From OpenBSD --- sys/dev/ic/ncr53c9x.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/dev/ic/ncr53c9x.c b/sys/dev/ic/ncr53c9x.c index 00688855aa50..70fdd19c985d 100644 --- a/sys/dev/ic/ncr53c9x.c +++ b/sys/dev/ic/ncr53c9x.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr53c9x.c,v 1.136 2008/04/28 20:23:50 martin Exp $ */ +/* $NetBSD: ncr53c9x.c,v 1.137 2008/05/13 22:16:27 christos Exp $ */ /*- * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.136 2008/04/28 20:23:50 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.137 2008/05/13 22:16:27 christos Exp $"); #include #include @@ -2850,8 +2850,7 @@ shortcut: if (NCRDMA_ISINTR(sc)) goto again; microtime(&cur); - } while (cur.tv_sec <= wait.tv_sec && - cur.tv_usec <= wait.tv_usec); + } while (timercmp(&cur, &wait, <=)); } goto out; }