Skip to content
New issue

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

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

Already on GitHub? Sign in 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.

@haoxian2 haoxian2 requested a review from pcolberg December 5, 2022 22:33
@haoxian2 haoxian2 requested review from pcolberg and zibaiwan December 6, 2022 17:01
@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
@haoxian2 haoxian2 force-pushed the coverity-acl-auto-configure branch from 0ece0ed to b3b86cc Compare December 13, 2022 16:02
@haoxian2 haoxian2 force-pushed the coverity-acl-auto-configure branch from b3b86cc to 52b0682 Compare December 13, 2022 16:08
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants