From nobody Mon Feb 9 07:19:30 2026 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E55DC1B81CA for ; Sat, 20 Dec 2025 13:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766235830; cv=none; b=DcN0wCADHSwBnY1P9N9FE2Kxc3PgKMTxpi9TJCfodjrUNXkGIMJjyEEKvOzhhG3objimvl+uI/f/94FbeLtjUuEnRJ+CNjN1Ia6DJiHQ2wsMLdh829qu16Ni8Lm5cnZZ7n4FyoZQ/zwvjmP1W99yeqHknkwSIoBjRiscqylILEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766235830; c=relaxed/simple; bh=xFgqueHF3fGB2WP8PsQU7HZID653leAC5JMQp+l2XE8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VbjzV1AqEY1yzCCc27B8wdRCne/1D/Kd8pE7gcG0q9m44hRsxqXMd7797U+siiCl9xBECAXCDKa67G7k20G4+Mow0yW9hg8c40Njihd8z/y53tWMCKqfPw8sJN0NKQnwTBcztpVlChCh8XNV1cC6N7l1lQFmyXrXWNO+w1EjCs8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=snXkc3IV; arc=none smtp.client-ip=95.215.58.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="snXkc3IV" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1766235826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7kYR1Q4ZNYME9wqginJxa0k4fTGKay33LK/jcK+fMvE=; b=snXkc3IVmm6q6KJkFhA9dQpa5emV9hqaOVZ3O1NiBBvVhuALZiofvR+neVmZELjS/3dvH/ FKN3pQmWtKk2d3raj9BCT3BdO/ZfhuzDZCO6B1IF1M5CbNFHvQxylZd28D5BW4EG55TlQ4 rsSnr14hBPg2oRxGEjGpcn/aoAlgYKU= From: Thorsten Blum To: "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman Cc: Thorsten Blum , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: ipconfig: Remove outdated comment and indent code block Date: Sat, 20 Dec 2025 14:03:34 +0100 Message-ID: <20251220130335.77220-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The comment has been around ever since commit 1da177e4c3f4 ("Linux-2.6.12-rc2") and can be removed. Remove it and indent the code block accordingly. Signed-off-by: Thorsten Blum --- net/ipv4/ipconfig.c | 87 ++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 45 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 019408d3ca2c..d577ef580f8c 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c @@ -705,51 +705,48 @@ ic_dhcp_init_options(u8 *options, struct ic_device *d) e +=3D 4; } =20 - /* always? */ - { - static const u8 ic_req_params[] =3D { - 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++ =3D 55; /* Parameter request list */ - *e++ =3D sizeof(ic_req_params); - memcpy(e, ic_req_params, sizeof(ic_req_params)); - e +=3D sizeof(ic_req_params); - - if (ic_host_name_set) { - *e++ =3D 12; /* host-name */ - len =3D strlen(utsname()->nodename); - *e++ =3D len; - memcpy(e, utsname()->nodename, len); - e +=3D len; - } - if (*vendor_class_identifier) { - pr_info("DHCP: sending class identifier \"%s\"\n", - vendor_class_identifier); - *e++ =3D 60; /* Class-identifier */ - len =3D strlen(vendor_class_identifier); - *e++ =3D len; - memcpy(e, vendor_class_identifier, len); - e +=3D len; - } - len =3D strlen(dhcp_client_identifier + 1); - /* the minimum length of identifier is 2, include 1 byte type, - * and can not be larger than the length of options - */ - if (len >=3D 1 && len < 312 - (e - options) - 1) { - *e++ =3D 61; - *e++ =3D len + 1; - memcpy(e, dhcp_client_identifier, len + 1); - e +=3D len + 1; - } + static const u8 ic_req_params[] =3D { + 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++ =3D 55; /* Parameter request list */ + *e++ =3D sizeof(ic_req_params); + memcpy(e, ic_req_params, sizeof(ic_req_params)); + e +=3D sizeof(ic_req_params); + + if (ic_host_name_set) { + *e++ =3D 12; /* host-name */ + len =3D strlen(utsname()->nodename); + *e++ =3D len; + memcpy(e, utsname()->nodename, len); + e +=3D len; + } + if (*vendor_class_identifier) { + pr_info("DHCP: sending class identifier \"%s\"\n", + vendor_class_identifier); + *e++ =3D 60; /* Class-identifier */ + len =3D strlen(vendor_class_identifier); + *e++ =3D len; + memcpy(e, vendor_class_identifier, len); + e +=3D len; + } + len =3D strlen(dhcp_client_identifier + 1); + /* the minimum length of identifier is 2, include 1 byte type, + * and can not be larger than the length of options + */ + if (len >=3D 1 && len < 312 - (e - options) - 1) { + *e++ =3D 61; + *e++ =3D len + 1; + memcpy(e, dhcp_client_identifier, len + 1); + e +=3D len + 1; } =20 *e++ =3D 255; /* End of the list */ --=20 Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4