diff options
| author | Andrey Shvetsov <andrey.shvetsov@k2l.de> | 2017-06-20 18:11:49 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-23 19:32:46 +0300 |
| commit | 606c21759774a6694d4219d5bb96704ab13e20a0 (patch) | |
| tree | d7e93c137ac9e49c56f552d1ea29f06d3729f57b /scripts/cleanpatch | |
| parent | 3c1746edd12d4e3279b47a9fb8dc0eedc77d679d (diff) | |
| download | linux-606c21759774a6694d4219d5bb96704ab13e20a0.tar.xz | |
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 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions
