]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: update undefined ->ndo_change_mtu() comment
authorMagnus Damm <damm+renesas@opensource.se>
Wed, 14 Jun 2017 07:15:24 +0000 (16:15 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jun 2017 19:14:51 +0000 (15:14 -0400)
Update ->ndo_change_mtu() callback comment to remove text
about returning error in case of undefined callback. This
change makes the comment match the existing code behavior.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 846193dfb0ac42c1955468a8edc4384dbba6ebbf..4ed952c17fc7757965c26d2eba1c56c39d5b4ccc 100644 (file)
@@ -914,8 +914,7 @@ struct xfrmdev_ops {
  *
  * int (*ndo_change_mtu)(struct net_device *dev, int new_mtu);
  *     Called when a user wants to change the Maximum Transfer Unit
- *     of a device. If not defined, any request to change MTU will
- *     will return an error.
+ *     of a device.
  *
  * void (*ndo_tx_timeout)(struct net_device *dev);
  *     Callback used when the transmitter has not made any progress