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

scsi: csiostor: remove unneeded DRIVER_LICENSE #define

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, especially when the string is defined in a .h file
far away from the .c file it is used in.

Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Varun Prakash <varun@chelsio.com>
Reported-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Greg Kroah-Hartman and committed by
Martin K. Petersen
43af2146 07ffd4ce

+1 -2
+1 -1
drivers/scsi/csiostor/csio_init.c
··· 1258 1258 module_exit(csio_exit); 1259 1259 MODULE_AUTHOR(CSIO_DRV_AUTHOR); 1260 1260 MODULE_DESCRIPTION(CSIO_DRV_DESC); 1261 - MODULE_LICENSE(CSIO_DRV_LICENSE); 1261 + MODULE_LICENSE("Dual BSD/GPL"); 1262 1262 MODULE_DEVICE_TABLE(pci, csio_pci_tbl); 1263 1263 MODULE_VERSION(CSIO_DRV_VERSION); 1264 1264 MODULE_FIRMWARE(FW_FNAME_T5);
-1
drivers/scsi/csiostor/csio_init.h
··· 48 48 #include "csio_hw.h" 49 49 50 50 #define CSIO_DRV_AUTHOR "Chelsio Communications" 51 - #define CSIO_DRV_LICENSE "Dual BSD/GPL" 52 51 #define CSIO_DRV_DESC "Chelsio FCoE driver" 53 52 #define CSIO_DRV_VERSION "1.0.0-ko" 54 53