staging: r8188eu: remove nr_endpoint member of dvobj_priv structure
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:30:32 +0000 (22:30 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:21 +0000 (11:23 +0200)
nr_endpoint used as local variable.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 289f2aa88f67f2d3d5cc57de1d2e421b607c9b0e..997b92fefbe6dde49ec564099fd6dd113226076a 100644 (file)
@@ -149,8 +149,6 @@ struct dvobj_priv {
        u8      Queue2Pipe[HW_QUEUE_ENTRY];/* for out pipe mapping */
 
 /*-------- below is for USB INTERFACE --------*/
-
-       u8      nr_endpoint;
        u8      ishighspeed;
        u8      RtNumInPipes;
        u8      RtNumOutPipes;
index 4a7a557796ecbd2a0a21abdb71111b834e4c1074..900dd5325488a36a913d652b5398507df8b3097d 100644 (file)
@@ -79,9 +79,8 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
 
        pdvobjpriv->NumInterfaces = pconf_desc->bNumInterfaces;
        pdvobjpriv->InterfaceNumber = piface_desc->bInterfaceNumber;
-       pdvobjpriv->nr_endpoint = piface_desc->bNumEndpoints;
 
-       for (i = 0; i < pdvobjpriv->nr_endpoint; i++) {
+       for (i = 0; i < piface_desc->bNumEndpoints; i++) {
                int ep_num;
                pendp_desc = &phost_iface->endpoint[i].desc;