staging: r8188eu: remove ep_num array
authorMartin Kaiser <martin@kaiser.cx>
Fri, 26 Nov 2021 17:32:03 +0000 (18:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 14:11:33 +0000 (15:11 +0100)
The ep_num array in struct dvobj_priv is not used. Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211126173205.21352-7-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/drv_types.h
drivers/staging/r8188eu/os_dep/usb_intf.c

index c3d8ef1..a3fb509 100644 (file)
@@ -149,7 +149,6 @@ struct dvobj_priv {
        u8      ishighspeed;
        u8      RtNumInPipes;
        u8      RtNumOutPipes;
-       int     ep_num[5]; /* endpoint number */
        int     RegUsbSS;
        struct semaphore usb_suspend_sema;
        struct mutex  usb_vendor_req_mutex;
index ba74cfc..e0a35a6 100644 (file)
@@ -116,7 +116,6 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
                                ep_num;
                        pdvobjpriv->RtNumOutPipes++;
                }
-               pdvobjpriv->ep_num[i] = ep_num;
        }
 
        if (pusbd->speed == USB_SPEED_HIGH) {