mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
ipconfig: Only bootp paths should reference ic_dev_xid.
It is only tested, and declared, in the bootp code. So, in ic_dynamic() guard it's setting with IPCONFIG_BOOTP. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5edbf7dfea
commit
405fd70719
1 changed files with 1 additions and 1 deletions
|
@ -1217,10 +1217,10 @@ static int __init ic_dynamic(void)
|
||||||
get_random_bytes(&timeout, sizeof(timeout));
|
get_random_bytes(&timeout, sizeof(timeout));
|
||||||
timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned int) CONF_TIMEOUT_RANDOM);
|
timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned int) CONF_TIMEOUT_RANDOM);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
#ifdef IPCONFIG_BOOTP
|
||||||
/* Track the device we are configuring */
|
/* Track the device we are configuring */
|
||||||
ic_dev_xid = d->xid;
|
ic_dev_xid = d->xid;
|
||||||
|
|
||||||
#ifdef IPCONFIG_BOOTP
|
|
||||||
if (do_bootp && (d->able & IC_BOOTP))
|
if (do_bootp && (d->able & IC_BOOTP))
|
||||||
ic_bootp_send_if(d, jiffies - start_jiffies);
|
ic_bootp_send_if(d, jiffies - start_jiffies);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue