From: Erik Arfvidson Date: Mon, 8 Feb 2016 15:41:52 +0000 (-0500) Subject: staging: unisys: fix else statement in visornic_main.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05f1b17ec7aad4381e5a2ba3e99dc9925b4eebcb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: unisys: fix else statement in visornic_main.c 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 Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 3da849a529cd..234fa2172e0f 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -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; }