From: Dan Carpenter Date: Fri, 12 Dec 2014 19:27:03 +0000 (+0300) Subject: ALSA: oxfw: some signedness bugs X-Git-Tag: omap-for-v3.20/drop-legacy-3517~15^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5580ba7bf61a6047a8b95459a9ed893f01947737;p=pandora-kernel.git ALSA: oxfw: some signedness bugs This code tends to use unsigned variables by default and it causes signedness bugs when we use negative variables for error handling. The "i" and "j" variables are used to iterated over small positive values and so they should be type "int". The "len" variable doesn't *need* to be signed but it should be signed to make the code easier to read and audit. Signed-off-by: Dan Carpenter Reviewed-by: Takashi Sakamoto Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed