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

usb: host: ehci-pci: remove useless cast for driver.name

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

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-16-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
7cbfeb65 f7bcff35

+1 -1
+1 -1
drivers/usb/host/ehci-pci.c
··· 384 384 385 385 /* pci driver glue; this is a "new style" PCI driver module */ 386 386 static struct pci_driver ehci_pci_driver = { 387 - .name = (char *) hcd_name, 387 + .name = hcd_name, 388 388 .id_table = pci_ids, 389 389 390 390 .probe = ehci_pci_probe,