Re: [PATCH net-next V3 8/9] eth: fbnic: Collect packet statistics for XDP

From: Jakub Kicinski
Date: Wed Aug 13 2025 - 10:32:23 EST


On Tue, 12 Aug 2025 15:22:52 -0700 Mohsin Bashir wrote:
> + } else if (PTR_ERR(skb) == -FBNIC_XDP_LEN_ERR) {
> + length_errors++;

cocci is complaining about this:

...fbnic_txrx.c:1264:14-21: ERROR: PTR_ERR applied after initialization to constant on line 1250

I think applying PTR_ERR/ERR_PTR to the constant may clean this up.
--
pw-bot: cr