Skip to contentSkip to conversation

net: fix register_netdev description

PATCH Superseded Ivan Safonov 1 participant 2 messages Oct 6, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fix register_netdev description

register_netdev() does not expands the device name.

---
 net/core/dev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
net/core/dev.c +3 -3
index cd479f5f22f6..06b13eef3628 100644
@@ -10611,10 +10611,10 @@ 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)
 {
 	int err;
Signature · 1 line
2.44.2
#1 lore raw

Please do not apply this.

Quoted 25 lines · Ivan Safonov

register_netdev() does not expands the device name.

---
  net/core/dev.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
net/core/dev.c +3 -3
index cd479f5f22f6..06b13eef3628 100644
@@ -10611,10 +10611,10 @@ 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)
  {
  	int err;