Skip to content

Commit

Permalink
ON-15601: Fix unused variable in release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
sianj-xilinx committed Apr 22, 2024
1 parent 115e619 commit 8db2c93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/transport/ip/netif_tx.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ ci_inline int ci_netif_pkt_to_remote_iovec(ci_netif* ni, ci_ip_pkt_fmt* pkt,
ef_remote_iovec* iov, unsigned iovlen)
{
int i, intf_i = pkt->intf_i;
struct ci_pkt_zc_header* zch;
#if CI_CFG_TX_CRC_OFFLOAD
struct ci_pkt_zc_header* zch;
struct ci_pkt_zc_payload* zcp;
#endif

Expand All @@ -46,12 +46,13 @@ ci_inline int ci_netif_pkt_to_remote_iovec(ci_netif* ni, ci_ip_pkt_fmt* pkt,
iov[0].addrspace = EF_ADDRSPACE_LOCAL;
iov[0].flags = 0;

i = 1;
#if CI_CFG_TX_CRC_OFFLOAD
zch = oo_tx_zc_header(pkt);

ci_assert_equal(pkt->n_buffers, 1);
ci_assert_ge(iovlen, 1 + zch->segs);
i = 1;
#if CI_CFG_TX_CRC_OFFLOAD

OO_TX_FOR_EACH_ZC_PAYLOAD(ni, zch, zcp) {
if( zcp->is_remote ) {
iov[i].iov_base = zcp->remote.dma_addr[intf_i];
Expand Down

0 comments on commit 8db2c93

Please sign in to comment.