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

usb: host: ohci-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-17-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
cd3d8cfc 7cbfeb65

+1 -1
+1 -1
drivers/usb/host/ohci-pci.c
··· 288 288 289 289 /* pci driver glue; this is a "new style" PCI driver module */ 290 290 static struct pci_driver ohci_pci_driver = { 291 - .name = (char *) hcd_name, 291 + .name = hcd_name, 292 292 .id_table = pci_ids, 293 293 294 294 .probe = usb_hcd_pci_probe,