]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Simplified code flow to not confuse SunPRO cc into thinking that variables
authorhno <>
Wed, 17 Oct 2001 20:59:34 +0000 (20:59 +0000)
committerhno <>
Wed, 17 Oct 2001 20:59:34 +0000 (20:59 +0000)
are used unassigned..

src/fs/aufs/async_io.cc

index 9428948dc1f515046737d69033d4944cf041fe94..4c07b506d28adc4768d4bea28cdcb9855e3cbf5f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: async_io.cc,v 1.9 2001/08/20 06:55:31 hno Exp $
+ * $Id: async_io.cc,v 1.10 2001/10/17 14:59:34 hno Exp $
  *
  * DEBUG: section 32    Asynchronous Disk I/O
  * AUTHOR: Pete Bentley <pete@demon.net>
@@ -155,14 +155,10 @@ aioCancel(int fd)
     assert(initialised);
     squidaio_counts.cancel++;
     for (m = used_list.head; m; m = next) {
-       while (m) {
-           curr = m->data;
-           if (curr->fd == fd)
-               break;
-           m = m->next;
-       }
-       if (m == NULL)
-           break;
+       next = m->next;
+       curr = m->data;
+       if (curr->fd != fd)
+           continue;
 
        squidaio_cancel(&curr->result);
 
@@ -175,7 +171,6 @@ aioCancel(int fd)
                done_handler(fd, their_data, -2, -2);
            cbdataUnlock(their_data);
        }
-       next = m->next;
        dlinkDelete(m, &used_list);
        memPoolFree(squidaio_ctrl_pool, curr);
     }