ChangeSet 1.1223, 2003/06/18 16:35:06-07:00, [EMAIL PROTECTED]

[PATCH] USB speedtouch: receive path micro optimization

Make the most discriminating comparison first.


 drivers/usb/speedtouch.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/usb/speedtouch.c b/drivers/usb/speedtouch.c
--- a/drivers/usb/speedtouch.c  Wed Jun 18 17:35:57 2003
+++ b/drivers/usb/speedtouch.c  Wed Jun 18 17:35:57 2003
@@ -257,7 +257,7 @@
        struct udsl_vcc_data *vcc;
 
        list_for_each_entry (vcc, &instance->vcc_list, list)
-               if ((vcc->vpi == vpi) && (vcc->vci == vci))
+               if ((vcc->vci == vci) && (vcc->vpi == vpi))
                        return vcc;
        return NULL;
 }



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to