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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux