Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Magnus Damm and committed by
David S. Miller
db46a0e1 74030603

+1 -2
+1 -2
include/linux/netdevice.h
··· 914 914 * 915 915 * int (*ndo_change_mtu)(struct net_device *dev, int new_mtu); 916 916 * 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. 919 918 * 920 919 * void (*ndo_tx_timeout)(struct net_device *dev); 921 920 * Callback used when the transmitter has not made any progress