提交 e4a06430 编写于 作者: D David Kershner 提交者: Greg Kroah-Hartman

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: NDavid Kershner <david.kershner@unisys.com>
Reviewed-by: NTim Sell <timothy.sell@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 26a42c25
...@@ -1830,9 +1830,8 @@ static __init int visorutil_spar_detect(void) ...@@ -1830,9 +1830,8 @@ static __init int visorutil_spar_detect(void)
return (ebx == UNISYS_VISOR_ID_EBX) && return (ebx == UNISYS_VISOR_ID_EBX) &&
(ecx == UNISYS_VISOR_ID_ECX) && (ecx == UNISYS_VISOR_ID_ECX) &&
(edx == UNISYS_VISOR_ID_EDX); (edx == UNISYS_VISOR_ID_EDX);
} else {
return 0;
} }
return 0;
} }
static int init_unisys(void) static int init_unisys(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册