mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 20:40:17 +07:00
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>
This commit is contained in:
parent
2b974ee056
commit
b284ddc36c
@ -174,7 +174,7 @@ static int midi_bind(struct usb_composite_dev *cdev)
|
||||
}
|
||||
|
||||
static struct usb_composite_driver midi_driver = {
|
||||
.name = (char *) longname,
|
||||
.name = longname,
|
||||
.dev = &device_desc,
|
||||
.strings = dev_strings,
|
||||
.max_speed = USB_SPEED_HIGH,
|
||||
|
Loading…
Reference in New Issue
Block a user