diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2020-02-18 20:32:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-19 11:10:24 +0100 |
commit | b284ddc36cbe8696604c9e39fa97a7d01d5b80c6 (patch) | |
tree | 7f6a07af5b9d7108011733f30e50319ad1026a23 /drivers/usb | |
parent | usb: core: Use ACPI_SUCCESS() at appropriate places (diff) | |
download | linux-b284ddc36cbe8696604c9e39fa97a7d01d5b80c6.tar.xz linux-b284ddc36cbe8696604c9e39fa97a7d01d5b80c6.zip |
usb: gadget: legacy: gmidi: remove useless cast for driver.name
usb_composite_driver name is const char pointer, so it not useful to cast
longname (which is already const char).
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-2-git-send-email-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/legacy/gmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/gmidi.c b/drivers/usb/gadget/legacy/gmidi.c index 9eea2d18f2bf..265c392810d7 100644 --- a/drivers/usb/gadget/legacy/gmidi.c +++ b/drivers/usb/gadget/legacy/gmidi.c @@ -174,7 +174,7 @@ put: } static struct usb_composite_driver midi_driver = { - .name = (char *) longname, + .name = longname, .dev = &device_desc, .strings = dev_strings, .max_speed = USB_SPEED_HIGH, |