瀏覽代碼

wmi: Use bool function return values of true/false not 1/0

Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Joe Perches 10 年之前
父節點
當前提交
097c27fcb2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/platform/x86/wmi.c

+ 2 - 2
drivers/platform/x86/wmi.c

@@ -239,10 +239,10 @@ static bool find_guid(const char *guid_string, struct wmi_block **out)
 		if (memcmp(block->guid, guid_input, 16) == 0) {
 			if (out)
 				*out = wblock;
-			return 1;
+			return true;
 		}
 	}
-	return 0;
+	return false;
 }
 
 static acpi_status wmi_method_enable(struct wmi_block *wblock, int enable)