]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: remove ncm_parm field
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 10:16:45 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 06:02:02 +0000 (02:02 -0400)
commit4074b5d36f55f9595cabf47c268a91fc0b070ee2
treedd1458d3788822fba831e06cf2e6a1cf3ac9a49a
parente06072c2ff829bcf16a82a92ff1b2e25eaff4bbd
net: cdc_ncm: remove ncm_parm field

Moving the call to cdc_ncm_setup() after the endpoint
setup removes the last remaining reference to ncm_parm
outside cdc_ncm_setup.

Collecting all the ncm_parm based calculations in
cdc_ncm_setup improves readability.

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
include/linux/usb/cdc_ncm.h