From: Michael Brown Date: Wed, 16 Mar 2011 20:16:45 +0000 (+0000) Subject: [hermon] Avoid unused variable warning in gcc 4.6 X-Git-Tag: v1.20.1~2220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4774a4fb92eda079fc3fabbc5627f97606c9bb88;p=thirdparty%2Fipxe.git [hermon] Avoid unused variable warning in gcc 4.6 Reported-by: Ralph Giles Tested-by: Ralph Giles Signed-off-by: Michael Brown --- diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c index 7f376887a..561e65ebc 100644 --- a/src/drivers/infiniband/hermon.c +++ b/src/drivers/infiniband/hermon.c @@ -1675,7 +1675,6 @@ static int hermon_complete ( struct ib_device *ibdev, struct hermon *hermon = ib_get_drvdata ( ibdev ); struct ib_work_queue *wq; struct ib_queue_pair *qp; - struct hermon_queue_pair *hermon_qp; struct io_buffer *iobuf; struct ib_address_vector recv_av; struct ib_global_route_header *grh; @@ -1710,7 +1709,6 @@ static int hermon_complete ( struct ib_device *ibdev, return -EIO; } qp = wq->qp; - hermon_qp = ib_qp_get_drvdata ( qp ); /* Identify work queue entry */ wqe_idx = MLX_GET ( &cqe->normal, wqe_counter );