diff options
author | yu kuai <yukuai3@huawei.com> | 2019-09-29 16:42:49 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-10-15 10:55:10 +0300 |
commit | e3008bf46ce0baf617cfd1b68d35e433dc603e43 (patch) | |
tree | 988e67aca0b888f99abb48e626f5e4a4ccd7c924 /Documentation/ABI/testing/sysfs-platform-mellanox-bootctl | |
parent | d740795d9273dafb02ed809f3b68d62388bc08d9 (diff) | |
download | linux-e3008bf46ce0baf617cfd1b68d35e433dc603e43.tar.xz |
platform/x86: classmate-laptop: remove unused variable
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/platform/x86/classmate-laptop.c: In function cmpc_accel_remove_v4:
drivers/platform/x86/classmate-laptop.c:424:21: warning: variable accel
set but not used [-Wunused-but-set-variable]
drivers/platform/x86/classmate-laptop.c: In function cmpc_accel_remove:
drivers/platform/x86/classmate-laptop.c:660:21: warning: variable accel
set but not used [-Wunused-but-set-variable]
In function cmpc_accel_remove_v4 and cmpc_accel_remove, variable accel is
set but not used, so it can be removed. In that case, variable inputdev is
set but not used and can be removed.
Fixes: 7125587df4e8 ("classmate-laptop: Add support for Classmate V4 accelerometer.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: yu kuai <yukuai3@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-platform-mellanox-bootctl')
0 files changed, 0 insertions, 0 deletions