]> bbs.cooldavid.org Git - net-next-2.6.git/commit
RDMA/cxgb3: Clean up signed check of unsigned variable
authorDan Carpenter <error27@gmail.com>
Mon, 19 Jul 2010 20:30:14 +0000 (20:30 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 21 Jul 2010 17:57:25 +0000 (10:57 -0700)
commit3d4f9a28e0f543e2a633d54f0f37f6e81a7701cd
tree8bc818be7f388dd94437f4bfe61e0c42ad93782c
parent589643be6693c46fbc54bae77745f336c8ed4bcc
RDMA/cxgb3: Clean up signed check of unsigned variable

Q_FREECNT() returns the number of spaces free.  This should never be a
negative amount.  Also the num_wrs is an unsigned int so it can never
be less than zero.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_qp.c