Merge tag 'irq-core-2020-12-23' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / net / ethernet / mellanox / mlx5 / core / en_txrx.c
index 793e313..a3cfe06 100644 (file)
@@ -217,14 +217,13 @@ void mlx5e_completion_event(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe)
 
        napi_schedule(cq->napi);
        cq->event_ctr++;
-       cq->channel->stats->events++;
+       cq->ch_stats->events++;
 }
 
 void mlx5e_cq_error_event(struct mlx5_core_cq *mcq, enum mlx5_event event)
 {
        struct mlx5e_cq *cq = container_of(mcq, struct mlx5e_cq, mcq);
-       struct mlx5e_channel *c = cq->channel;
-       struct net_device *netdev = c->netdev;
+       struct net_device *netdev = cq->netdev;
 
        netdev_err(netdev, "%s: cqn=0x%.6x event=0x%.2x\n",
                   __func__, mcq->cqn, event);