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

usb: host: xhci-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-20-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
c02f1ef6 b0700222

+1 -1
+1 -1
drivers/usb/host/xhci-pci.c
··· 547 547 548 548 /* pci driver glue; this is a "new style" PCI driver module */ 549 549 static struct pci_driver xhci_pci_driver = { 550 - .name = (char *) hcd_name, 550 + .name = hcd_name, 551 551 .id_table = pci_ids, 552 552 553 553 .probe = xhci_pci_probe,