Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic In the polling case, don't call mpt_timeout() twice.



details:   https://anonhg.NetBSD.org/src/rev/913c23e8ba04
branches:  trunk
changeset: 545840:913c23e8ba04
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Apr 16 23:17:30 2003 +0000

description:
In the polling case, don't call mpt_timeout() twice.

diffstat:

 sys/dev/ic/mpt_netbsd.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (22 lines):

diff -r 71081686d771 -r 913c23e8ba04 sys/dev/ic/mpt_netbsd.c
--- a/sys/dev/ic/mpt_netbsd.c   Wed Apr 16 23:16:41 2003 +0000
+++ b/sys/dev/ic/mpt_netbsd.c   Wed Apr 16 23:17:30 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mpt_netbsd.c,v 1.3 2003/04/16 23:16:41 thorpej Exp $   */
+/*     $NetBSD: mpt_netbsd.c,v 1.4 2003/04/16 23:17:30 thorpej Exp $   */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -919,11 +919,8 @@
        /*
         * If we can't use interrupts, poll on completion.
         */
-       if (mpt_poll(mpt, xs, xs->timeout)) {
+       if (mpt_poll(mpt, xs, xs->timeout))
                mpt_timeout(req);
-               if (mpt_poll(mpt, xs, xs->timeout))
-                       mpt_timeout(req);
-       }
 }
 
 static void



Home | Main Index | Thread Index | Old Index