Commit a3fe0722 authored by Duncan Sands's avatar Duncan Sands Committed by Linus Torvalds

[PATCH] USB speedtouch: receive path micro optimization

Make the most discriminating comparison first.
parent 2aea7c00
......@@ -265,7 +265,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