diff mbox series

[net-next] net: usbnet: remove driver version

Message ID bb7c95e6-30a5-dbd9-f335-51553e48d628@gmail.com (mailing list archive)
State Accepted
Commit 6236239d1cc479b5cf49317822241e8a97fefb7b
Headers show
Series [net-next] net: usbnet: remove driver version | expand

Commit Message

Heiner Kallweit Oct. 9, 2020, 12:10 p.m. UTC
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>
---
 drivers/net/usb/usbnet.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Greg KH Oct. 9, 2020, 1:08 p.m. UTC | #1
On Fri, Oct 09, 2020 at 02:10:57PM +0200, Heiner Kallweit wrote:
> 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>
Jakub Kicinski Oct. 10, 2020, 5:43 p.m. UTC | #2
On Fri, 9 Oct 2020 14:10:57 +0200 Heiner Kallweit wrote:
> 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>

Applied, thank you!
diff mbox series

Patch

diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index bf6c58240..963d260d1 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -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);