On Tue, 22 Oct 2024 20:20:40 +0800 Junlong Wang <wang.junlo...@zte.com.cn> wrote:
> +/* Interrupt handler triggered by NIC for handling specific interrupt. */ > +static void zxdh_fromriscv_intr_handler(void *param) > +{ > + struct rte_eth_dev *dev = param; > + struct zxdh_hw *hw = dev->data->dev_private; > + uint64_t virt_addr = 0; > + > + virt_addr = (uint64_t)(hw->bar_addr[ZXDH_BAR0_INDEX] + > ZXDH_CTRLCH_OFFSET); There is no need to initialize a variable like virt_addr which is set later.