[PATCH 13/14] USB speedtouch: receive path micro optimization

From: Duncan Sands (baldrick@wanadoo.fr)
Date: Tue May 20 2003 - 18:06:00 EST


Make the most discriminating comparison first.

 speedtch.c | 2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/drivers/usb/misc/speedtch.c b/drivers/usb/misc/speedtch.c
--- a/drivers/usb/misc/speedtch.c Wed May 21 00:41:10 2003
+++ b/drivers/usb/misc/speedtch.c Wed May 21 00:41:10 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;
 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:43 EST