]> err.no Git - linux-2.6/blobdiff - net/ipv4/ipconfig.c
[NET]: fix-up schedule_timeout() usage
[linux-2.6] / net / ipv4 / ipconfig.c
index 953129d392d21cc97f551f93c519b491cb0190cc..e8674baaa8d99034ee0d56a7fdbdfc66d205abf6 100644 (file)
@@ -1103,10 +1103,8 @@ static int __init ic_dynamic(void)
 #endif
 
                jiff = jiffies + (d->next ? CONF_INTER_TIMEOUT : timeout);
-               while (time_before(jiffies, jiff) && !ic_got_reply) {
-                       set_current_state(TASK_UNINTERRUPTIBLE);
-                       schedule_timeout(1);
-               }
+               while (time_before(jiffies, jiff) && !ic_got_reply)
+                       schedule_timeout_uninterruptible(1);
 #ifdef IPCONFIG_DHCP
                /* DHCP isn't done until we get a DHCPACK. */
                if ((ic_got_reply & IC_BOOTP)