On Sun, 31 May 2026 02:46:24 +0800
[email protected] wrote:

> +RTE_EXPORT_INTERNAL_SYMBOL(sxe2_common_mem_event_cb)
> +void
> +sxe2_common_mem_event_cb(enum rte_mem_event type,
> +             const void *addr, size_t size, void *arg __rte_unused)
> +{
> +     struct sxe2_common_device *cdev = NULL;
> +
> +     if (rte_eal_process_type() != RTE_PROC_PRIMARY)
> +             goto l_end;
> +
> +     (void)pthread_mutex_lock(&sxe2_common_devices_list_lock);

Cast to (void) is unnecessary clutter here.

Reply via email to