net: cdc_ncm: return proper error if setup fails
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 10:16:59 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 06:02:04 +0000 (02:02 -0400)
commit59ede3168a0b3fe02f82a7bed52432f18dbb1070
treeb88d31a1c3899d822ae2df31b09a763f509061b6
parent47175e5f283f8c78ff325edde0aec2018ce607e5
net: cdc_ncm: return proper error if setup fails

Most setup errors are ignored to ensure maximum firmware
compatibilty.  But GET_NTB_PARAMETERS and the functional
descriptors are required.  Use proper error codes and
log level if these fail.

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