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
..
2013-11-27 01:03:27 +01:00
2013-12-06 08:30:18 -08:00
2013-11-19 15:53:02 -05:00
2013-12-08 18:47:25 -08:00
2013-12-12 11:05:19 -08:00
2013-12-02 21:11:30 +00:00
2013-12-13 13:22:22 -08:00
2013-12-08 18:47:25 -08:00
2013-11-15 14:05:15 -08:00
2013-11-18 15:35:09 -08:00
2013-12-13 11:39:54 -08:00
2013-12-06 08:30:18 -08:00
2013-11-29 12:53:19 -08:00
2013-12-10 08:48:15 +01:00
2013-12-02 10:12:01 -08:00