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

usb: host: sl811-hcd: remove useless cast for driver.name

device_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-18-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
bb7458c2 cd3d8cfc

+1 -1
+1 -1
drivers/usb/host/sl811-hcd.c
··· 1792 1792 .suspend = sl811h_suspend, 1793 1793 .resume = sl811h_resume, 1794 1794 .driver = { 1795 - .name = (char *) hcd_name, 1795 + .name = hcd_name, 1796 1796 }, 1797 1797 }; 1798 1798 EXPORT_SYMBOL(sl811h_driver);