Skip to contentSkip to conversation

USB speedtouch: receive path micro optimization

PATCH In review Duncan Sands 1 participant 1 message May 20, 2003 USB

lore
Share & tools
lore
#0 lore raw

PATCH 13/14 USB speedtouch: receive path micro optimization

Make the most discriminating comparison first.

 speedtch.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/usb/misc/speedtch.c +1 -1
diff -Nru a/drivers/usb/misc/speedtch.c b/drivers/usb/misc/speedtch.c
@@ -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;
 }