staging: most: aim-networking: keep channels closed if ndo_open fails
authorAndrey Shvetsov <andrey.shvetsov@k2l.de>
Tue, 25 Oct 2016 15:44:19 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 13:12:08 +0000 (15:12 +0200)
commit1e80e19ce9c67b2fecce9068ad40d1e778faa58f
tree6ba97fa32517726a7a4f38742e31b28318a96f58
parent54dc7ed37d390f75e31a323defe30424835490c7
staging: most: aim-networking: keep channels closed if ndo_open fails

This patch stops all started channels whenever the function most_nd_open
returns an error. Additionally, it renames variable wait_res to ret for
the consistency.

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>
drivers/staging/most/aim-network/networking.c