libertas: remove redundant USB idVendor/idProduct matching code

Marcelo Tosatti mtosatti at redhat.unroutablecom
Wed Dec 20 16:01:14 EST 2006


Commit:     1c078d3729ba298cc3be8e376a4e17d02c8b5045
Parent:     d1f2d751c8f50f48f3ff24dee9d4eca772364f09
commit 1c078d3729ba298cc3be8e376a4e17d02c8b5045
Author:     Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Mon Dec 11 18:54:09 2006 -0200
Commit:     Andres Salomon <dilinger at debian.org>
CommitDate: Wed Dec 20 15:35:54 2006 -0500

    libertas: remove redundant USB idVendor/idProduct matching code
    
    Already done by USB upper layer.
    
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
    (cherry picked from 6481f3a0f00e854149b049608f663e24c4c4d238 commit)
---
 drivers/net/wireless/libertas/if_usb.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index ccd6755..495fa55 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -200,25 +200,6 @@ static int if_usb_probe(struct usb_inter
 
 	udev = interface_to_usbdev(intf);
 
-	/* Check probe is for our device */
-	for (i = 0; if_usb_table[i].idVendor; i++) {
-		if (udev->descriptor.idVendor == if_usb_table[i].idVendor &&
-		    udev->descriptor.idProduct == if_usb_table[i].idProduct) {
-			dprintk(1, "VID/PID = %X/%X, Boot2 version = %X\n",
-			udev->descriptor.idVendor, udev->descriptor.idProduct,
-			udev->descriptor.bcdDevice);
-			break;
-		}
-	}
-
-	if (!if_usb_table[i].idVendor) {
-		dprintk(1, "Discard the Probe request\n");
-		dprintk(1, "VID = 0x%X PID = 0x%X\n",
-		       udev->descriptor.idVendor, udev->descriptor.idProduct);
-		LEAVE();
-		return -ENODEV;
-	}
-
 	usb_cardp = kzalloc(sizeof(struct usb_card_rec), GFP_KERNEL);
 	if (!usb_cardp) {
 		printk(KERN_ERR "Out of memory allocating private data.\n");


More information about the Commits-kernel mailing list