Commit d7a30724 authored by Duncan Sands's avatar Duncan Sands Committed by Greg Kroah-Hartman

[PATCH] USB speedtouch: receive path micro optimization

Make the most discriminating comparison first.
parent fb31074a
......@@ -257,7 +257,7 @@ static inline struct udsl_vcc_data *udsl_find_vcc (struct udsl_instance_data *in
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment