Skip to content

Commit db46a0e

Browse files
Magnus Dammdavem330
authored andcommitted
net: update undefined ->ndo_change_mtu() comment
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>
1 parent 7403060 commit db46a0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/netdevice.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,7 @@ struct xfrmdev_ops {
914914
*
915915
* int (*ndo_change_mtu)(struct net_device *dev, int new_mtu);
916916
* Called when a user wants to change the Maximum Transfer Unit
917-
* of a device. If not defined, any request to change MTU will
918-
* will return an error.
917+
* of a device.
919918
*
920919
* void (*ndo_tx_timeout)(struct net_device *dev);
921920
* Callback used when the transmitter has not made any progress

0 commit comments

Comments
 (0)