]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
platform/x86: classmate-laptop: remove unused variable
authoryu kuai <yukuai3@huawei.com>
Sun, 29 Sep 2019 13:42:49 +0000 (21:42 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 10 Oct 2019 11:13:54 +0000 (14:13 +0300)
commit18380f52dbac230032a16545e67a6d90b548cf18
tree186b13d3a8719927b62608500e3ac5b752803853
parentda0c9ea146cbe92b832f1b0f694840ea8eb33cce
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>
drivers/platform/x86/classmate-laptop.c