mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Remove dead code inside #if 0 ... #endif
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3ad757d04a
commit
77e736c66a
64 changed files with 98 additions and 7692 deletions
|
@ -513,68 +513,18 @@ _func_enter_;
|
|||
pdvobjpriv->RtNumInPipes = 0;
|
||||
pdvobjpriv->RtNumOutPipes = 0;
|
||||
|
||||
//padapter->EepromAddressSize = 6;
|
||||
//pdvobjpriv->nr_endpoint = 6;
|
||||
|
||||
pdev_desc = &pusbd->descriptor;
|
||||
|
||||
#if 0
|
||||
DBG_871X("\n8712_usb_device_descriptor:\n");
|
||||
DBG_871X("bLength=%x\n", pdev_desc->bLength);
|
||||
DBG_871X("bDescriptorType=%x\n", pdev_desc->bDescriptorType);
|
||||
DBG_871X("bcdUSB=%x\n", pdev_desc->bcdUSB);
|
||||
DBG_871X("bDeviceClass=%x\n", pdev_desc->bDeviceClass);
|
||||
DBG_871X("bDeviceSubClass=%x\n", pdev_desc->bDeviceSubClass);
|
||||
DBG_871X("bDeviceProtocol=%x\n", pdev_desc->bDeviceProtocol);
|
||||
DBG_871X("bMaxPacketSize0=%x\n", pdev_desc->bMaxPacketSize0);
|
||||
DBG_871X("idVendor=%x\n", pdev_desc->idVendor);
|
||||
DBG_871X("idProduct=%x\n", pdev_desc->idProduct);
|
||||
DBG_871X("bcdDevice=%x\n", pdev_desc->bcdDevice);
|
||||
DBG_871X("iManufacturer=%x\n", pdev_desc->iManufacturer);
|
||||
DBG_871X("iProduct=%x\n", pdev_desc->iProduct);
|
||||
DBG_871X("iSerialNumber=%x\n", pdev_desc->iSerialNumber);
|
||||
DBG_871X("bNumConfigurations=%x\n", pdev_desc->bNumConfigurations);
|
||||
#endif
|
||||
|
||||
phost_conf = pusbd->actconfig;
|
||||
pconf_desc = &phost_conf->desc;
|
||||
|
||||
#if 0
|
||||
DBG_871X("\n8712_usb_configuration_descriptor:\n");
|
||||
DBG_871X("bLength=%x\n", pconf_desc->bLength);
|
||||
DBG_871X("bDescriptorType=%x\n", pconf_desc->bDescriptorType);
|
||||
DBG_871X("wTotalLength=%x\n", pconf_desc->wTotalLength);
|
||||
DBG_871X("bNumInterfaces=%x\n", pconf_desc->bNumInterfaces);
|
||||
DBG_871X("bConfigurationValue=%x\n", pconf_desc->bConfigurationValue);
|
||||
DBG_871X("iConfiguration=%x\n", pconf_desc->iConfiguration);
|
||||
DBG_871X("bmAttributes=%x\n", pconf_desc->bmAttributes);
|
||||
DBG_871X("bMaxPower=%x\n", pconf_desc->bMaxPower);
|
||||
#endif
|
||||
|
||||
//DBG_871X("\n/****** num of altsetting = (%d) ******/\n", pusb_interface->num_altsetting);
|
||||
|
||||
phost_iface = &usb_intf->altsetting[0];
|
||||
piface_desc = &phost_iface->desc;
|
||||
|
||||
#if 0
|
||||
DBG_871X("\n8712_usb_interface_descriptor:\n");
|
||||
DBG_871X("bLength=%x\n", piface_desc->bLength);
|
||||
DBG_871X("bDescriptorType=%x\n", piface_desc->bDescriptorType);
|
||||
DBG_871X("bInterfaceNumber=%x\n", piface_desc->bInterfaceNumber);
|
||||
DBG_871X("bAlternateSetting=%x\n", piface_desc->bAlternateSetting);
|
||||
DBG_871X("bNumEndpoints=%x\n", piface_desc->bNumEndpoints);
|
||||
DBG_871X("bInterfaceClass=%x\n", piface_desc->bInterfaceClass);
|
||||
DBG_871X("bInterfaceSubClass=%x\n", piface_desc->bInterfaceSubClass);
|
||||
DBG_871X("bInterfaceProtocol=%x\n", piface_desc->bInterfaceProtocol);
|
||||
DBG_871X("iInterface=%x\n", piface_desc->iInterface);
|
||||
#endif
|
||||
|
||||
pdvobjpriv->NumInterfaces = pconf_desc->bNumInterfaces;
|
||||
pdvobjpriv->InterfaceNumber = piface_desc->bInterfaceNumber;
|
||||
pdvobjpriv->nr_endpoint = piface_desc->bNumEndpoints;
|
||||
|
||||
//DBG_871X("\ndump usb_endpoint_descriptor:\n");
|
||||
|
||||
for (i = 0; i < pdvobjpriv->nr_endpoint; i++)
|
||||
{
|
||||
phost_endp = phost_iface->endpoint + i;
|
||||
|
@ -586,14 +536,10 @@ _func_enter_;
|
|||
DBG_871X("bLength=%x\n",pendp_desc->bLength);
|
||||
DBG_871X("bDescriptorType=%x\n",pendp_desc->bDescriptorType);
|
||||
DBG_871X("bEndpointAddress=%x\n",pendp_desc->bEndpointAddress);
|
||||
//DBG_871X("bmAttributes=%x\n",pendp_desc->bmAttributes);
|
||||
DBG_871X("wMaxPacketSize=%d\n",le16_to_cpu(pendp_desc->wMaxPacketSize));
|
||||
DBG_871X("bInterval=%x\n",pendp_desc->bInterval);
|
||||
//DBG_871X("bRefresh=%x\n",pendp_desc->bRefresh);
|
||||
//DBG_871X("bSynchAddress=%x\n",pendp_desc->bSynchAddress);
|
||||
|
||||
if (RT_usb_endpoint_is_bulk_in(pendp_desc))
|
||||
{
|
||||
if (RT_usb_endpoint_is_bulk_in(pendp_desc)) {
|
||||
DBG_871X("RT_usb_endpoint_is_bulk_in = %x\n", RT_usb_endpoint_num(pendp_desc));
|
||||
pdvobjpriv->RtInPipe[pdvobjpriv->RtNumInPipes] = RT_usb_endpoint_num(pendp_desc);
|
||||
pdvobjpriv->RtNumInPipes++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue