mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 13/14] USB speedtouch: receive path micro optimization
@ 2003-05-20 23:06 Duncan Sands
  0 siblings, 0 replies; only message in thread
From: Duncan Sands @ 2003-05-20 23:06 UTC (permalink / raw)
  To: linux-usb-devel; +Cc: Greg KH, linux-kernel

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;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-20 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-20 23:06 [PATCH 13/14] USB speedtouch: receive path micro optimization Duncan Sands

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®