浏览代码

[arbel] 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 年前
父节点
当前提交
0bb8508143
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/drivers/infiniband/arbel.c

+ 1
- 1
src/drivers/infiniband/arbel.c 查看文件

@@ -918,7 +918,7 @@ static int arbel_create_recv_wq ( struct arbel_recv_work_queue *arbel_recv_wq,
918 918
 		next_wqe = &arbel_recv_wq->wqe[( i + 1 ) & wqe_idx_mask].recv;
919 919
 		MLX_FILL_1 ( &wqe->next, 0, nda_31_6,
920 920
 			     ( virt_to_bus ( next_wqe ) >> 6 ) );
921
-		MLX_FILL_1 ( &wqe->next, 1, nds, ( sizeof ( *wqe ) / 16 ) );
921
+		MLX_FILL_1 ( &wqe->next, 1, nds, nds );
922 922
 		for ( j = 0 ; ( ( ( void * ) &wqe->data[j] ) <
923 923
 				( ( void * ) ( wqe + 1 ) ) ) ; j++ ) {
924 924
 			MLX_FILL_1 ( &wqe->data[j], 1,

正在加载...
取消
保存