• B
    net: cdc_ncm: refactoring cdc_ncm_setup · 47175e5f
    Bjørn Mork 提交于
    Rewriting the "set max datagram" part of dc_ncm_setup to
    separate the selection and validatation of the size from
    the code which optionally informs the device of this
    value.  This ensures that we use the correct value
    regardless of device support for the get and set commands.
    
    Removing some of the many indent levels while doing this
    to make the code more readable.
    
    Cc: Alexey Orishko <alexey.orishko@gmail.com>
    Signed-off-by: NBjørn Mork <bjorn@mork.no>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    47175e5f
cdc_ncm.c 35.2 KB