Messages in this thread Patch in this message | | | From | Duncan Sands <> | Subject | [PATCH 13/14] USB speedtouch: receive path micro optimization | Date | Wed, 21 May 2003 01:06:00 +0200 |
| |
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/
| |