]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7bb6b581a28da6ba6dfc171b7995d82839d38fc
tree79765bbde90b2353bf1942ce9f1c2fb6111d0f86
parent5d3518c8c011776607abf95f9705a05bc48541ec
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