]> git.baikalelectronics.ru Git - kernel.git/commit
x86/wmi: delete unused wmi_data_lock mutex causing gcc warning
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 23 Mar 2015 18:01:37 +0000 (14:01 -0400)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 25 Mar 2015 17:25:09 +0000 (10:25 -0700)
commitd691256bb78da3c8b56765fe3ca28e67508b4f08
treec2993332d7115a3c7078387dd6a4b5aec442416f
parentfdda84182361f309f3896355e142725235b4e0f7
x86/wmi: delete unused wmi_data_lock mutex causing gcc warning

In commit 2749d933562301894a9039a9d83f6d175f6f3a1d ("ACPI: WMI: Add
ACPI-WMI mapping driver") this mutex was added, but the rest of the
final commit never actually made use of it, resulting in:

 In file included from include/linux/mutex.h:29:0,
                  from include/linux/kernfs.h:13,
                  from include/linux/sysfs.h:15,
                  from include/linux/kobject.h:21,
                  from include/linux/device.h:17,
                  from drivers/platform/x86/wmi.c:35:
 drivers/platform/x86/wmi.c:48:21: warning: ‘wmi_data_lock’ defined but not used [-Wunused-variable]
  static DEFINE_MUTEX(wmi_data_lock);
                      ^

A git grep shows no other instances/references to the wmi_data_lock.
Delete it, assuming that the mutex addition was just a leftover from
an earlier work in progress version of the change, since the original
dates from 2008.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/wmi.c