From: David Kershner Date: Wed, 30 Aug 2017 17:36:25 +0000 (-0400) Subject: staging: unisys: visorbus: Remove useless else clause in visorutil_spar_detect. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4a064300002986132afa426fbe3f7376ce8f7cd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: unisys: visorbus: Remove useless else clause in visorutil_spar_detect. The function visorutil_spar_detect had an if clause that returns from the function, no need to do the rest of the code in an else clause. Signed-off-by: David Kershner Reviewed-by: Tim Sell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index d27e0e897ab9..a602ba605bf5 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -1830,9 +1830,8 @@ static __init int visorutil_spar_detect(void) return (ebx == UNISYS_VISOR_ID_EBX) && (ecx == UNISYS_VISOR_ID_ECX) && (edx == UNISYS_VISOR_ID_EDX); - } else { - return 0; } + return 0; } static int init_unisys(void)