staging: unisys: fix else statement in visornic_main.c
authorErik Arfvidson <erik.arfvidson@unisys.com>
Mon, 8 Feb 2016 15:41:52 +0000 (10:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:37:15 +0000 (19:37 -0800)
This patch fixes the following types of check patch warnings:
else is not generally useful after a break or return

Signed-off-by: Erik Arfvidson <erik.arfvidson@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

index 3da849a529cdf1e7f4bcf58157b6c5f469517b04..234fa2172e0f75a7bdef5ab9a6edbf71d9a00c76 100644 (file)
@@ -377,8 +377,8 @@ visornic_serverdown(struct visornic_devdata *devdata,
                        __func__);
                spin_unlock_irqrestore(&devdata->priv_lock, flags);
                return -EINVAL;
-       } else
-               spin_unlock_irqrestore(&devdata->priv_lock, flags);
+       }
+       spin_unlock_irqrestore(&devdata->priv_lock, flags);
        return 0;
 }