]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: usbnet: remove driver version
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 9 Oct 2020 12:10:57 +0000 (14:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Oct 2020 17:42:36 +0000 (10:42 -0700)
Obviously this driver version doesn't make sense. Go with the default
and let ethtool display the kernel version.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/usbnet.c

index bf6c58240bd44d2dda69b2a6cb770e039a285028..963d260d19ab30a9242e4476e57560f1fa805e2f 100644 (file)
@@ -34,9 +34,6 @@
 #include <linux/kernel.h>
 #include <linux/pm_runtime.h>
 
-#define DRIVER_VERSION         "22-Aug-2005"
-
-
 /*-------------------------------------------------------------------------*/
 
 /*
@@ -1047,7 +1044,6 @@ void usbnet_get_drvinfo (struct net_device *net, struct ethtool_drvinfo *info)
        struct usbnet *dev = netdev_priv(net);
 
        strlcpy (info->driver, dev->driver_name, sizeof info->driver);
-       strlcpy (info->version, DRIVER_VERSION, sizeof info->version);
        strlcpy (info->fw_version, dev->driver_info->description,
                sizeof info->fw_version);
        usb_make_path (dev->udev, info->bus_info, sizeof info->bus_info);