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

usb: gadget: net2280: remove useless cast for driver.name

device_driver name is const char pointer, so it not useful to cast
driver_name (which is already const char).

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-12-git-send-email-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Corentin Labbe and committed by
Greg Kroah-Hartman
8d57a84a 93bc7363

+1 -1
+1 -1
drivers/usb/gadget/udc/net2280.c
··· 3857 3857 3858 3858 /* pci driver glue; this is a "new style" PCI driver module */ 3859 3859 static struct pci_driver net2280_pci_driver = { 3860 - .name = (char *) driver_name, 3860 + .name = driver_name, 3861 3861 .id_table = pci_ids, 3862 3862 3863 3863 .probe = net2280_probe,