staging: unisys: unregister netdev when create debugfs fails
authorDavid Kershner <david.kershner@unisys.com>
Fri, 4 Sep 2015 16:01:29 +0000 (12:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:43:40 +0000 (09:43 -0700)
commit5b12100a53c11ef760e78c2899be8f1bf33812ca
tree769e7d7983c10d110392d38d2c26f13c85953617
parentdd3afa57c515801f37071734f56be9035fdeaa8c
staging: unisys: unregister netdev when create debugfs fails

Noticed we were not unregistering the netdevice if we failed to
create the debugfs entries. This patch fixes that problem.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c