浏览代码

[hermon] Avoid unused variable warning in gcc 4.6

Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 年前
父节点
当前提交
4774a4fb92
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0
    2
      src/drivers/infiniband/hermon.c

+ 0
- 2
src/drivers/infiniband/hermon.c 查看文件

@@ -1675,7 +1675,6 @@ static int hermon_complete ( struct ib_device *ibdev,
1675 1675
 	struct hermon *hermon = ib_get_drvdata ( ibdev );
1676 1676
 	struct ib_work_queue *wq;
1677 1677
 	struct ib_queue_pair *qp;
1678
-	struct hermon_queue_pair *hermon_qp;
1679 1678
 	struct io_buffer *iobuf;
1680 1679
 	struct ib_address_vector recv_av;
1681 1680
 	struct ib_global_route_header *grh;
@@ -1710,7 +1709,6 @@ static int hermon_complete ( struct ib_device *ibdev,
1710 1709
 		return -EIO;
1711 1710
 	}
1712 1711
 	qp = wq->qp;
1713
-	hermon_qp = ib_qp_get_drvdata ( qp );
1714 1712
 
1715 1713
 	/* Identify work queue entry */
1716 1714
 	wqe_idx = MLX_GET ( &cqe->normal, wqe_counter );

正在加载...
取消
保存