[PATCH 00/18] Input - Fix make coccicheck warnings

From: Javier Martinez Canillas
Date: Fri Oct 02 2015 - 09:46:09 EST


Hello Dmitry,

This series contains trivial patches with fixes to different warnings
reported by make coccichek M=drivers/input.

The patches don't contain functional changes but makes the functions
simpler and removes unnecessary lines of code.

Best regards,
Javier


Javier Martinez Canillas (18):
Input: joydev - use memdup_user() to duplicate memory from user-space
Input: ads7846 - use PTR_ERR_OR_ZERO()
Input: cyttsp - use PTR_ERR_OR_ZERO()
Input: kxtj9 - remove unneeded retval variable
Input: retu-pwrbutton - simplify function return logic
Input: zforce - simplify function return logic
Input: cap11xx - simplify function return logic
Input: goldfish - simplify function return logic
Input: jornada720_ts - simplify function return logic
Input: intel-mid-touch - simplify function return logic
Input: da9034-ts - simplify function return logic
Input: pxa27x_keypad - simplify function return logic
Input: atmel_mxt_ts - simplify function return logic
Input: synaptics_i2c - simplify function return logic
Input: auo-pixcir-ts - simplify function return logic
Input: elan_i2c - simplify function return logic
Input: cypress_ps2 - simplify function return logic
Input: tps6507x-ts - simplify function return logic

drivers/input/joydev.c | 18 ++++++-----------
drivers/input/keyboard/cap11xx.c | 8 ++------
drivers/input/keyboard/goldfish_events.c | 6 +-----
drivers/input/keyboard/pxa27x_keypad.c | 12 ++++--------
drivers/input/misc/kxtj9.c | 3 +--
drivers/input/misc/retu-pwrbutton.c | 6 +-----
drivers/input/mouse/cypress_ps2.c | 6 +-----
drivers/input/mouse/elan_i2c_smbus.c | 6 +-----
drivers/input/mouse/synaptics_i2c.c | 6 +-----
drivers/input/touchscreen/ads7846.c | 4 +---
drivers/input/touchscreen/atmel_mxt_ts.c | 30 +++++------------------------
drivers/input/touchscreen/auo-pixcir-ts.c | 7 +------
drivers/input/touchscreen/cyttsp4_i2c.c | 5 +----
drivers/input/touchscreen/da9034-ts.c | 7 +------
drivers/input/touchscreen/intel-mid-touch.c | 6 +-----
drivers/input/touchscreen/jornada720_ts.c | 6 +-----
drivers/input/touchscreen/tps6507x-ts.c | 9 +--------
drivers/input/touchscreen/zforce_ts.c | 7 +------
18 files changed, 31 insertions(+), 121 deletions(-)

--
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/