LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] net: usb: hso.c: remove unneeded DRIVER_LICENSE #define
@ 2017-11-17 14:19 Greg Kroah-Hartman
  2017-11-17 14:52 ` Philippe Ombredanne
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Greg Kroah-Hartman @ 2017-11-17 14:19 UTC (permalink / raw)
  To: netdev
  Cc: David S. Miller, Andreas Kemnade, Johan Hovold, linux-kernel,
	Philippe Ombredanne, linux-usb

There is no need to #define the license of the driver, just put it in
the MODULE_LICENSE() line directly as a text string.

This allows tools that check that the module license matches the source
code license to work properly, as there is no need to unwind the
unneeded dereference.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Andreas Kemnade <andreas@kemnade.info>
Cc: Johan Hovold <johan@kernel.org>
Reported-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/net/usb/hso.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index d7a3379ea668..f40d1423cf46 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -76,7 +76,6 @@
 
 #define MOD_AUTHOR			"Option Wireless"
 #define MOD_DESCRIPTION			"USB High Speed Option driver"
-#define MOD_LICENSE			"GPL"
 
 #define HSO_MAX_NET_DEVICES		10
 #define HSO__MAX_MTU			2048
@@ -3288,7 +3287,7 @@ module_exit(hso_exit);
 
 MODULE_AUTHOR(MOD_AUTHOR);
 MODULE_DESCRIPTION(MOD_DESCRIPTION);
-MODULE_LICENSE(MOD_LICENSE);
+MODULE_LICENSE("GPL");
 
 /* change the debug level (eg: insmod hso.ko debug=0x04) */
 MODULE_PARM_DESC(debug, "debug level mask [0x01 | 0x02 | 0x04 | 0x08 | 0x10]");
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-11-24  0:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-17 14:19 [PATCH] net: usb: hso.c: remove unneeded DRIVER_LICENSE #define Greg Kroah-Hartman
2017-11-17 14:52 ` Philippe Ombredanne
2017-11-18  1:37 ` David Miller
2017-11-22 17:05 ` Joe Perches
2017-11-22 17:12   ` Greg Kroah-Hartman
2017-11-23 23:30     ` Joe Perches
2017-11-24  0:25       ` Joe Perches
2017-11-22 17:21   ` [Outreachy kernel] " Julia Lawall
2017-11-22 21:20   ` Julia Lawall
2017-11-23  6:22     ` Greg Kroah-Hartman
2017-11-23  7:31       ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).