From: Mat Martineau Date: Wed, 25 Apr 2012 23:36:12 +0000 (-0700) Subject: Bluetooth: Improve ERTM sequence number offset calculation X-Git-Tag: v3.5-rc1~101^2~6^2^2^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a364bd399d23fe6244de8f84c46f249b763c723;p=pandora-kernel.git Bluetooth: Improve ERTM sequence number offset calculation Instead of using modular division, the offset can be calculated using only addition and subtraction. The previous calculation did not work as intended and was more difficult to understand, involving unsigned integer underflow and a check for a negative value where one was not possible. Signed-off-by: Mat Martineau Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed