PVS Studio reported error: V646 Consider inspecting the application's logic. It's possible that 'else' keyword is missing in two device drivers. Consider attached patch that fixes it.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 24470
Event Timeline
I tend to think that neither of these is actually a problem, since in both cases, if the "if" is taken, we return or jump. But the fix seems harmless.
BTW, when uploading patches if not using arcanist, please provide full context. You can do that in git with diff -U9999999 (this is what I do, I don't care for the arcanist stuff).
Thanks; since I'm not an src committer, I'd wait for at least another LGTM review.
I'll remember to do a full context diff next time, once I figure out how to do that with Subversion (I'm not sure why people often suggest Git commands in FreeBSD context).
The changes seem correct.
I don't think a simple phabricator acceptance from a committer is suficient approval for a non src committer though, so I hereby explicitly approve it.