[PATCH] 2.5.18: net/ipv4/ipconfig.c minor fix

Frank Davis (fdavis@si.rr.com)
Sun, 26 May 2002 22:14:58 -0400 (EDT)


Hello all,
The following patch fixes two compile warnings 'defined but not used'.
Since the label and int are only used for IPCONFIG_DYNAMIC, appropriate
fixes were made to remove the warnings.

Regards,
Frank

--- net/ipv4/ipconfig.c.old Sun May 26 21:39:52 2002
+++ net/ipv4/ipconfig.c Sun May 26 21:40:01 2002
@@ -1110,7 +1110,6 @@

static int __init ip_auto_config(void)
{
- int retries = CONF_OPEN_RETRIES;
unsigned long jiff;

#ifdef CONFIG_PROC_FS
@@ -1121,8 +1120,9 @@
return 0;

DBG(("IP-Config: Entered.\n"));
-
+#ifdef IPCONFIG_DYNAMIC
try_try_again:
+#endif
/* Give hardware a chance to settle */
jiff = jiffies + CONF_PRE_OPEN;
while (time_before(jiffies, jiff))
@@ -1151,6 +1151,8 @@
#endif
ic_first_dev->next) {
#ifdef IPCONFIG_DYNAMIC
+
+ int retries = CONF_OPEN_RETRIES;

if (ic_dynamic() < 0) {
ic_close_devs();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/