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

Eliminate dead code (CID #1603583) #5351

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jejones3141
Copy link
Contributor

Since args was just initialized to NULL and never changed, the xlat_func_args_set() call done if args is non-NULL never happens. (Said call is the only use of xlat_redundant_args.) Coverity rightly notices the dead code.

That said, it's hard not to think that the original author didn't want to set args to a non-NULL value at some point. This PR will solve the Coverity issue and won't change semantics, but at some point it merits reconsideration.

Since args was just initialized to NULL and never changed, the
xlat_func_args_set() call done if args is non-NULL never happens.
(Said call is the only use of xlat_redundant_args.) Coverity rightly
notices the dead code.

That said, it's hard not to think that the original author didn't
want to set args to a non-NULL value at some point. This PR will
solve the Coverity issue and won't change semantics, but at some
point it merits reconsideration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant