diff options
author | Andrey Shvetsov <andrey.shvetsov@k2l.de> | 2017-06-20 17:11:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-24 00:32:46 +0800 |
commit | 606c21759774a6694d4219d5bb96704ab13e20a0 (patch) | |
tree | d7e93c137ac9e49c56f552d1ea29f06d3729f57b /firmware/atmsar11.HEX | |
parent | 3c1746edd12d4e3279b47a9fb8dc0eedc77d679d (diff) |
staging: most: net: make net device lifetime obvious
The function aim_probe_channel calls only one of the functions
alloc_netdev and register_netdev per run.
Correspondingly, the function aim_disconnect_channel calls only one of
the functions unregister_netdev and free_netdev per run.
This patch makes it obvious by using the 'else' part of the 'if'
statement.
Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware/atmsar11.HEX')
0 files changed, 0 insertions, 0 deletions