]> 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)
commit27f3f5407dbac0c3ec4aa91d7e35903f986a1ec7
tree79765bbde90b2353bf1942ce9f1c2fb6111d0f86
parent0ffe8fc3c4359541a86dc9f54596afe14da180f7
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