]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: use IAD provided by the USB core
authorBjørn Mork <bjorn@mork.no>
Fri, 25 Jan 2013 23:36:59 +0000 (23:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2013 00:27:39 +0000 (19:27 -0500)
commit4c17a0b94a5a691c32e27b85bf4d2e1518fff3ad
tree31d4a677a641d633408ac5068b0c6c1100341576
parent1232d3006f546c823024342dd684194552aa32f2
net: cdc_ncm: use IAD provided by the USB core

commit d30bc79 (net: cdc_ncm: workaround for missing CDC Union)
added code to lookup an IAD for the interface we are probing.
This is redundant.  The USB core has already done the lookup
and saved the result in the USB interface struct.  Use that
instead.

Cc: Greg Suarez <gsuarez@smithmicro.com>
Cc: Alexey Orishko <alexey.orishko@stericsson.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c