net: cdc_ncm: only the control intf can be probed
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 10:16:48 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 06:02:03 +0000 (02:02 -0400)
commit9fe0234c0bf8b3c412df0adc9ebbe6a1e95daf51
tree79765bbde90b2353bf1942ce9f1c2fb6111d0f86
parent832922362e1308aaef95a43383577d56f51fbc3c
net: cdc_ncm: only the control intf can be probed

The probed interface must be the master/control interface of the
function.  Make this explicit and simplify redundant tests.

Cc: Alexey Orishko <alexey.orishko@gmail.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