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

usb: host: uhci-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-19-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
b0700222 bb7458c2

+1 -1
+1 -1
drivers/usb/host/uhci-pci.c
··· 294 294 MODULE_DEVICE_TABLE(pci, uhci_pci_ids); 295 295 296 296 static struct pci_driver uhci_pci_driver = { 297 - .name = (char *)hcd_name, 297 + .name = hcd_name, 298 298 .id_table = uhci_pci_ids, 299 299 300 300 .probe = usb_hcd_pci_probe,