hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/input/mouse/alps.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ALPS touchpad PS/2 mouse driver
34 *
....@@ -9,10 +10,6 @@
910 *
1011 * ALPS detection, tap switching and status querying info is taken from
1112 * tpconfig utility (by C. Scott Ananian and Bruce Kall).
12
- *
13
- * This program is free software; you can redistribute it and/or modify it
14
- * under the terms of the GNU General Public License version 2 as published by
15
- * the Free Software Foundation.
1613 */
1714
1815 #include <linux/slab.h>
....@@ -1932,7 +1929,7 @@
19321929 static int alps_absolute_mode_v6(struct psmouse *psmouse)
19331930 {
19341931 u16 reg_val = 0x181;
1935
- int ret = -1;
1932
+ int ret;
19361933
19371934 /* enter monitor mode, to write the register */
19381935 if (alps_monitor_mode(psmouse, true))