On Wed, 11 Sep 2024 15:54:25 +0800 Hanxiao Li <li.hanx...@zte.com.cn> wrote:
> +void > +zsda_stats_reset(void **queue_pairs, const uint32_t nb_queue_pairs) > +{ > + enum zsda_service_type type; > + uint32_t i; > + struct zsda_qp *qp; > + > + if (queue_pairs == NULL) { > + ZSDA_LOG(ERR, E_NULL); > + return; > + } > + > + for (i = 0; i < nb_queue_pairs; i++) { > + qp = (struct zsda_qp *)queue_pairs[i Cast is not needed here. In C (vs C++) assignment of void * is implicit cast.