summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/udc/net2280.c
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2020-02-18 20:32:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-19 11:10:26 +0100
commit8d57a84ae96dc3da42f043e8be59c3502ab9ba11 (patch)
tree44159b23b13387a3ee223288051e1746508b9947 /drivers/usb/gadget/udc/net2280.c
parentusb: gadget: m66592-udc: remove useless cast for driver.name (diff)
downloadlinux-8d57a84ae96dc3da42f043e8be59c3502ab9ba11.tar.xz
linux-8d57a84ae96dc3da42f043e8be59c3502ab9ba11.zip
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>
Diffstat (limited to 'drivers/usb/gadget/udc/net2280.c')
-rw-r--r--drivers/usb/gadget/udc/net2280.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c
index 1fd1b9186e46..4a815aab8f5b 100644
--- a/drivers/usb/gadget/udc/net2280.c
+++ b/drivers/usb/gadget/udc/net2280.c
@@ -3857,7 +3857,7 @@ MODULE_DEVICE_TABLE(pci, pci_ids);
/* pci driver glue; this is a "new style" PCI driver module */
static struct pci_driver net2280_pci_driver = {
- .name = (char *) driver_name,
+ .name = driver_name,
.id_table = pci_ids,
.probe = net2280_probe,