ib_srpt: Fix a compiler warning

This patch fixes a compiler warning introduced by r7410.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7413 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-07-11 15:50:54 +00:00
parent 86208ac77d
commit 5e4d37994f
+3 -3
View File
@@ -2243,9 +2243,9 @@ retry:
* max_sge values, use max_sge_delta.
*/
ch->max_sge = sdev->dev_attr.max_sge -
min(max_sge_delta,
max_t(int, 0,
sdev->dev_attr.max_sge - max_sge_delta));
min_t(unsigned, max_sge_delta,
max_t(int, 0,
sdev->dev_attr.max_sge - max_sge_delta));
qp_init->cap.max_send_sge = ch->max_sge;
qp_init->cap.max_recv_sge = ch->max_sge;
if (sdev->use_srq) {