Commit e405b3c9 authored by Thorsten Blum's avatar Thorsten Blum Committed by Jakub Kicinski
Browse files

net: ipconfig: Remove outdated comment and indent code block



The comment has been around ever since commit 1da177e4
("Linux-2.6.12-rc2") and can be removed. Remove it and indent the code
block accordingly.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260109121128.170020-2-thorsten.blum@linux.dev


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d2f59bf9
Loading
Loading
Loading
Loading
+42 −47
Original line number Diff line number Diff line
@@ -679,8 +679,18 @@ static const u8 ic_bootp_cookie[4] = { 99, 130, 83, 99 };
static void __init
ic_dhcp_init_options(u8 *options, struct ic_device *d)
{
	u8 mt = ((ic_servaddr == NONE)
		 ? DHCPDISCOVER : DHCPREQUEST);
	static const u8 ic_req_params[] = {
		1,	/* Subnet mask */
		3,	/* Default gateway */
		6,	/* DNS server */
		12,	/* Host name */
		15,	/* Domain name */
		17,	/* Boot path */
		26,	/* MTU */
		40,	/* NIS domain name */
		42,	/* NTP servers */
	};
	u8 mt = (ic_servaddr == NONE) ? DHCPDISCOVER : DHCPREQUEST;
	u8 *e = options;
	int len;

@@ -705,20 +715,6 @@ ic_dhcp_init_options(u8 *options, struct ic_device *d)
		e += 4;
	}

	/* always? */
	{
		static const u8 ic_req_params[] = {
			1,	/* Subnet mask */
			3,	/* Default gateway */
			6,	/* DNS server */
			12,	/* Host name */
			15,	/* Domain name */
			17,	/* Boot path */
			26,	/* MTU */
			40,	/* NIS domain name */
			42,	/* NTP servers */
		};

	*e++ = 55;	/* Parameter request list */
	*e++ = sizeof(ic_req_params);
	memcpy(e, ic_req_params, sizeof(ic_req_params));
@@ -750,7 +746,6 @@ ic_dhcp_init_options(u8 *options, struct ic_device *d)
		memcpy(e, dhcp_client_identifier, len + 1);
		e += len + 1;
	}
	}

	*e++ = 255;	/* End of the list */
}