From: Mikel Astiz Date: Wed, 11 Apr 2012 06:48:47 +0000 (+0200) Subject: Bluetooth: Use unsigned int instead of signed int X-Git-Tag: v3.5-rc1~101^2~6^2^2^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abc5de8f4e68ea785e32b91e456f467d2a2fb7db;p=pandora-kernel.git Bluetooth: Use unsigned int instead of signed int The involved values are all unsigned and thus unsigned int should be used instead of signed int. Assigning ~0 to a signed int results in -1, which is confusing and error-prone, while the code is trying to set the maximum value possible. The code still works because the C standard defines that unsigned comparison will be performed in these cases, when comparing an unsigned int and a signed int. Signed-off-by: Mikel Astiz Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed