]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: hisax: fix frame calculation
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:49 +0000 (15:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Sep 2015 23:14:31 +0000 (16:14 -0700)
commitc3a59fa4e976bfbcd183a8b592bdb5e071b74d59
tree6a2959940201d4dea2e94a29e4b7f7a4d1824cc0
parentcb1f43513d9319cb8cb3f8a6c0c8b41fcfedcc13
isdn: hisax: fix frame calculation

Difference of unsigned values is also unsigned so it does not make
sense to check its sign.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/hfc4s8s_l1.c