|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -53,7 +53,7 @@ static void wmi_log_history(struct notifier_block *block, void *data,
|
|
|
if (!wmi_handle)
|
|
|
return;
|
|
|
|
|
|
- if (wmi_history)
|
|
|
+ if (wmi_history == WMI_EVT_HIST)
|
|
|
wmi_log = &wmi_handle->log_info.wmi_event_log_buf_info;
|
|
|
else
|
|
|
wmi_log = &wmi_handle->log_info.wmi_command_log_buf_info;
|