[PATCH v2] net: fix register_netdev description

From: Ivan Safonov
Date: Sun Oct 06 2024 - 14:02:26 EST


register_netdev() does not expands the device name.

Signed-off-by: Ivan Safonov <insafonov@xxxxxxxxx>
---
v2: Remove excessive blank line

net/core/dev.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index cd479f5f22f6..861dbd6e46e8 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -10611,9 +10611,8 @@ EXPORT_SYMBOL_GPL(init_dummy_netdev);
* chain. 0 is returned on success. A negative errno code is returned
* on a failure to set up the device, or if the name is a duplicate.
*
- * This is a wrapper around register_netdevice that takes the rtnl semaphore
- * and expands the device name if you passed a format string to
- * alloc_netdev.
+ * This is a wrapper around register_netdevice that takes
+ * the rtnl semaphore.
*/
int register_netdev(struct net_device *dev)
{
--
2.44.2