[RFC 00/11] Fix dev_ops dereferences
Bruce Richardson
bruce.richardson at intel.com
Tue Feb 18 09:47:29 CET 2025
On Mon, Feb 17, 2025 at 09:24:04PM +0100, Morten Brørup wrote:
> > From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> > Sent: Monday, 17 February 2025 19.54
> >
> > A common pattern in DPDK internals is to have an array of function
> > pointers. When using these pointers an unnecessary derefence is done;
> > this is allowed in C because of a historical quirk but unnecessary.
> >
> > The PVS Studio checker flags these as:
> > https://pvs-studio.com/en/docs/warnings/v516/
> >
> > This leads to a large number of warnings marked as High severity.
> > This patchset simplifies the source and gets rid of these warnings.
> >
> > It should have no impact on the resulting binary.
>
> +1 to this RFC.
> The code becomes much cleaner to read.
>
Agreed.
Series-acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list