From: Luis Ortega Date: Mon, 27 Jan 2014 20:27:49 +0000 (-0800) Subject: Input: zforce - remove unnecessary payload data checks X-Git-Tag: v3.15-rc1~102^2^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aee41a60c4d53f65918c1ec0ab94c245f2c08af;p=pandora-kernel.git 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 Acked-by: Heiko Stuebner Tested-by: Heiko Stuebner - bq Cervantes (imx6sl) Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed