RDMA/vmw_pvrdma: Fix a signedness
authorAdit Ranadive <aditr@vmware.com>
Tue, 29 Aug 2017 22:51:30 +0000 (15:51 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 31 Aug 2017 12:35:08 +0000 (08:35 -0400)
Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver")
Signed-off-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c

index 8a12dc73b68ef2906c426ef68f357ae2c71bb810..3562c0c30492d07a7d1eddacb033ef769a1f9264 100644 (file)
@@ -299,7 +299,7 @@ static inline struct pvrdma_cqe *get_cqe(struct pvrdma_cq *cq, int i)
 
 void _pvrdma_flush_cqe(struct pvrdma_qp *qp, struct pvrdma_cq *cq)
 {
-       int head;
+       unsigned int head;
        int has_data;
 
        if (!cq->is_kernel)