[RFC 00/11] Fix dev_ops dereferences

Stephen Hemminger stephen at networkplumber.org
Tue Feb 18 04:01:08 CET 2025


I found a bunch more cases will send V2

On Mon, Feb 17, 2025, 12:24 Morten Brørup <mb at smartsharesystems.com> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250217/eb763523/attachment-0001.htm>


More information about the dev mailing list