[PATCH v2 04/10] app/test: avoid duplicate initialization
Bruce Richardson
bruce.richardson at intel.com
Fri Nov 15 10:03:41 CET 2024
On Thu, Nov 14, 2024 at 11:25:02AM -0800, Stephen Hemminger wrote:
> The event_dev_config initialization had duplicate assignments
> to the same element. Change to use structure initialization
> so that compiler will catch this type of bug.
>
> Link: https://pvs-studio.com/en/blog/posts/cpp/1179/
>
> Fixes: f8f9d233ea0e ("test/eventdev: add unit tests")
> Cc: jerin.jacob at caviumnetworks.com
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list