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)
commit56a666dcfcb46e998a1bd969fb201bf51de3c412
tree31d4a677a641d633408ac5068b0c6c1100341576
parent2afd0a24da6c63ad3c1af1c510cb91c7befdc8d0
net: cdc_ncm: use IAD provided by the USB core

commit 9992c2e (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