]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[arbel] Avoid unused variable warning in gcc 4.6
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 20:15:39 +0000 (20:15 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 20:15:39 +0000 (20:15 +0000)
Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/arbel.c

index 79b9114f1cd8c2c0e3c1f1cec62978507474c290..88a15e3ca12549f7b1857636f1d596cb3107087f 100644 (file)
@@ -918,7 +918,7 @@ static int arbel_create_recv_wq ( struct arbel_recv_work_queue *arbel_recv_wq,
                next_wqe = &arbel_recv_wq->wqe[( i + 1 ) & wqe_idx_mask].recv;
                MLX_FILL_1 ( &wqe->next, 0, nda_31_6,
                             ( virt_to_bus ( next_wqe ) >> 6 ) );
-               MLX_FILL_1 ( &wqe->next, 1, nds, ( sizeof ( *wqe ) / 16 ) );
+               MLX_FILL_1 ( &wqe->next, 1, nds, nds );
                for ( j = 0 ; ( ( ( void * ) &wqe->data[j] ) <
                                ( ( void * ) ( wqe + 1 ) ) ) ; j++ ) {
                        MLX_FILL_1 ( &wqe->data[j], 1,