linux/drivers/input/touchscreen
Luis Ortega 5aee41a60c Input: zforce - remove unnecessary payload data checks
The function zforce_read_packet() reads 2 values (bytes) of payload
header, validates them and then proceeds to read the payload body.
The function stores all these in a u8 buffer.

The PAYLOAD_LENGTH check seems to be trying to detect an overflow error.
However, since we are just reading a u8 value from the buffer, these
checks are unnecessary and we should simply compare against zero.

Signed-off-by: Luis Ortega <luiorpe1@upv.es>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de> - bq Cervantes (imx6sl)
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2014-01-27 22:35:17 -08:00
..
88pm860x-ts.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
ad7877.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
ad7879-i2c.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
ad7879-spi.c Input: ad7879-spi - remove redundant spi_set_drvdata 2013-09-20 09:58:29 -07:00
ad7879.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
ad7879.h Input: ad7879 - consolidate PM methods 2011-11-15 22:24:22 -08:00
ads7846.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
atmel_mxt_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
atmel_tsadcc.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
atmel-wm97xx.c Input: atmel-wm97xx - fix compile error 2013-11-20 21:15:52 -08:00
auo-pixcir-ts.c Input: auo-pixcir-ts - switch to using managed resources 2013-02-25 23:02:57 -08:00
bu21013_ts.c Input: bu21013_ts - add support for Device Tree booting 2012-11-27 23:05:19 -08:00
cy8ctmg110_ts.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
cyttsp4_core.c Input: cyttsp4 - remove unnecessary work pending test 2013-11-20 21:15:26 -08:00
cyttsp4_core.h Input: cyttsp4 - use 16bit address for I2C/SPI communication 2013-07-06 21:57:06 -07:00
cyttsp4_i2c.c Input: cyttsp4 - I2C driver for Cypress TMA4XX touchscreen devices 2013-06-30 21:24:24 -07:00
cyttsp4_spi.c Input: cyttsp4 - replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO 2013-11-11 00:01:45 -08:00
cyttsp_core.c Linux 3.13-rc4 2013-12-16 02:04:49 -08:00
cyttsp_core.h Input: cyttsp4 - use 16bit address for I2C/SPI communication 2013-07-06 21:57:06 -07:00
cyttsp_i2c_common.c Input: cyttsp - include appropriate header file in cyttsp_i2c_common.c 2013-12-15 02:54:04 -08:00
cyttsp_i2c.c Input: cyttsp - I2C driver split into two modules 2013-06-30 21:24:16 -07:00
cyttsp_spi.c Input: cyttsp4 - use 16bit address for I2C/SPI communication 2013-07-06 21:57:06 -07:00
da9034-ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
da9052_tsi.c Input: da9052_tsi - remove redundant platform_set_drvdata() 2013-05-05 20:14:41 -07:00
dynapro.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
edt-ft5x06.c Input: edt_ft5x06 - use devm_* functions where appropriate 2014-01-20 20:29:21 -08:00
eeti_ts.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
egalax_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
elo.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
fujitsu_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
gunze.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
hampshire.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
hp680_ts_input.c Input: hp680_ts_input - ensure arguments to request_irq and free_irq are compatible 2012-03-12 22:17:56 -07:00
htcpen.c Input: htcpen - remove redundant dev_set_drvdata 2013-09-18 07:53:30 -07:00
ili210x.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
inexio.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
intel-mid-touch.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
jornada720_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
Kconfig Input: add sur40 driver for Samsung SUR40 (aka MS Surface 2.0/Pixelsense) 2013-11-20 06:38:44 -08:00
lpc32xx_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
mainstone-wm97xx.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
Makefile Input: add sur40 driver for Samsung SUR40 (aka MS Surface 2.0/Pixelsense) 2013-11-20 06:38:44 -08:00
max11801_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
mc13783_ts.c Input: mc13783_ts - remove redundant platform_set_drvdata() 2013-05-05 20:14:52 -07:00
mcs5000_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
migor_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
mk712.c Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
mms114.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
mtouch.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
pcap_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
penmount.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
pixcir_i2c_ts.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
s3c2410_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
st1232.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
stmpe-ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
sur40.c Input: sur40 - suppress false uninitialized variable warning 2013-12-01 22:17:35 -08:00
ti_am335x_tsc.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
tnetv107x-ts.c Input: tnetv107x-ts - remove redundant platform_set_drvdata() 2013-05-05 20:14:59 -07:00
touchit213.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
touchright.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
touchwin.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
tps6507x-ts.c Input: tps6507x-ts - convert to polled input device infrastructure 2013-07-01 11:38:41 -07:00
tsc40.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
tsc2005.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
tsc2007.c Input: tsc2007 - convert to use devres-managed resources 2013-11-25 18:27:56 -08:00
ucb1400_ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
usbtouchscreen.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
w90p910_ts.c Input: w90p910_ts - remove redundant platform_set_drvdata() 2013-05-08 09:04:16 -07:00
wacom_i2c.c Input: wacom_i2c - implement hovering capability 2013-06-18 23:19:00 -07:00
wacom_w8001.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
wm97xx-core.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
wm831x-ts.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
wm9705.c Input: wm97xx - mark channels which need pen_down 2011-07-04 19:31:47 -07:00
wm9712.c Input: wm9712 - fix dev_dbg newlines 2013-03-12 08:50:20 -07:00
wm9713.c Input: wm97xx - mark channels which need pen_down 2011-07-04 19:31:47 -07:00
zforce_ts.c Input: zforce - remove unnecessary payload data checks 2014-01-27 22:35:17 -08:00
zylonite-wm97xx.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00