瀏覽代碼

staging: unisys: refactor visorutil_spar_detect()

Fix the declaration line so it is just one single line, and add the missing
brackets on the else clause in the if statement.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Benjamin Romer 11 年之前
父節點
當前提交
670db786db
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/staging/unisys/visorutil/visorkmodutils.c

+ 3 - 3
drivers/staging/unisys/visorutil/visorkmodutils.c

@@ -36,8 +36,7 @@
 int unisys_spar_platform;
 int unisys_spar_platform;
 EXPORT_SYMBOL_GPL(unisys_spar_platform);
 EXPORT_SYMBOL_GPL(unisys_spar_platform);
 
 
-static __init uint32_t
-visorutil_spar_detect(void)
+static __init uint32_t visorutil_spar_detect(void)
 {
 {
 	unsigned int eax, ebx, ecx, edx;
 	unsigned int eax, ebx, ecx, edx;
 
 
@@ -47,8 +46,9 @@ visorutil_spar_detect(void)
 		return  (ebx == UNISYS_SPAR_ID_EBX) &&
 		return  (ebx == UNISYS_SPAR_ID_EBX) &&
 			(ecx == UNISYS_SPAR_ID_ECX) &&
 			(ecx == UNISYS_SPAR_ID_ECX) &&
 			(edx == UNISYS_SPAR_ID_EDX);
 			(edx == UNISYS_SPAR_ID_EDX);
-	} else
+	} else {
 		return 0;
 		return 0;
+	}
 }
 }
 
 
 static __init int
 static __init int