Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed coverity issue in acl_auto_configure.cpp #222

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

haoxian2
Copy link
Contributor

@haoxian2 haoxian2 commented Dec 5, 2022

Fixed coverity issue in acl_auto_configure.cpp: Type: Unused value (UNUSED_VALUE)

Coverity was complaining that result doesn't get used before being reassigned. Therefore, I just use the function itself in the argument and reset the value to 0 if the assignment fails inside of read_int_counters. It is rather redundant, but it makes coverity happy.

src/acl_auto_configure.cpp Outdated Show resolved Hide resolved
@pcolberg pcolberg added the bug Something isn't working label Dec 7, 2022
@pcolberg pcolberg added this to the 2023.1 milestone Dec 7, 2022
@pcolberg pcolberg modified the milestones: 2023.1, 2023.2 Dec 23, 2022
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @haoxian2. @pcolberg , I think this PR is ready for merge now. Can you please take a look at when you get the chance?

@pcolberg pcolberg merged commit 04b57f7 into intel:main Jan 10, 2023
@haoxian2 haoxian2 deleted the coverity-acl-auto-configure branch January 10, 2023 22:32
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants