• Bjørn Mork's avatar
    net: cdc_ncm: refactoring cdc_ncm_setup · 47175e5f
    Bjørn Mork authored
    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: default avatarBjørn Mork <bjorn@mork.no>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    47175e5f
cdc_ncm.c 35.2 KB