]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
USB: serial: io_edgeport: drop unused descriptor helper
authorJohan Hovold <johan@kernel.org>
Fri, 2 Jul 2021 13:43:48 +0000 (15:43 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 30 Jul 2021 15:15:39 +0000 (17:15 +0200)
Drop the unused (and not even compiled) string descriptor helper.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/io_edgeport.c

index ea4edf5eed275945f88372e50b4823bf123dc80f..bdee78cc4a072aa0c27e79e33457d5d18aac7612 100644 (file)
@@ -389,39 +389,6 @@ static void update_edgeport_E2PROM(struct edgeport_serial *edge_serial)
        release_firmware(fw);
 }
 
-#if 0
-/************************************************************************
- *
- *  Get string descriptor from device
- *
- ************************************************************************/
-static int get_string_desc(struct usb_device *dev, int Id,
-                               struct usb_string_descriptor **pRetDesc)
-{
-       struct usb_string_descriptor StringDesc;
-       struct usb_string_descriptor *pStringDesc;
-
-       dev_dbg(&dev->dev, "%s - USB String ID = %d\n", __func__, Id);
-
-       if (!usb_get_descriptor(dev, USB_DT_STRING, Id, &StringDesc,
-                                               sizeof(StringDesc)))
-               return 0;
-
-       pStringDesc = kmalloc(StringDesc.bLength, GFP_KERNEL);
-       if (!pStringDesc)
-               return -1;
-
-       if (!usb_get_descriptor(dev, USB_DT_STRING, Id, pStringDesc,
-                                                       StringDesc.bLength)) {
-               kfree(pStringDesc);
-               return -1;
-       }
-
-       *pRetDesc = pStringDesc;
-       return 0;
-}
-#endif
-
 static void dump_product_info(struct edgeport_serial *edge_serial,
                              struct edgeport_product_info *product_info)
 {