From 0e3325b705f01a10efb3335139315b653ecb0dcd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 24 Jul 2011 10:56:57 +0000 Subject: [PATCH] ib_srpt: Fix an RHEL-specific compiler warning. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3750 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 93aa9154c..199f56255 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1158,7 +1158,7 @@ static int srpt_ch_qp_rts(struct srpt_rdma_ch *ch, struct ib_qp *qp) * T_tr = 4.096 us * 2**(local ACK timeout) where the local ACK timeout * is a five-bit value, with zero meaning that the timer is disabled. */ - WARN_ON(attr->timeout < 0 || attr->timeout >= (1 << 5)); + WARN_ON(attr->timeout >= (1 << 5)); if (attr->timeout) { T_tr_ns = 1ULL << (12 + attr->timeout); max_compl_time_ms = attr->retry_cnt * 4 * T_tr_ns / 1000000;