瀏覽代碼

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 <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
David Kershner 8 年之前
父節點
當前提交
e4a0643000
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/staging/unisys/visorbus/visorchipset.c

+ 1 - 2
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)