Skip to content

RDKEMW-22730 : Fix coverity issue on devicesettings - #268

Open
balav08 wants to merge 1 commit into
developfrom
feature/RDKEMW-22730
Open

RDKEMW-22730 : Fix coverity issue on devicesettings#268
balav08 wants to merge 1 commit into
developfrom
feature/RDKEMW-22730

Conversation

@balav08

@balav08 balav08 commented Jul 30, 2026

Copy link
Copy Markdown

Reason for change: Fixing coverity reported issues.
Test Procedure: Refer ticket.
Risks: Low
Priority: P2
version: minor

Reason for change: Fixing coverity reported issues.
Test Procedure: Refer ticket.
Risks: Low
Priority: P2
version: minor

Signed-off-by: balaji velmurugan <balaji_velmurugan@comcast.com>
Copilot AI review requested due to automatic review settings July 30, 2026 14:09
@balav08
balav08 requested a review from a team as a code owner July 30, 2026 14:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Coverity-reported findings in the device settings audio components, aiming to remove redundant code and improve special-member-function completeness for a public type.

Changes:

  • Removed a redundant assignment to _DolbyVolumeMode in an exception path (keeps the existing default behavior).
  • Added move operations to AudioStereoMode to address a Coverity rule-of-five style warning.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
rpc/srv/dsAudio.c Removes redundant assignment in nested exception handling during Dolby Volume mode initialization.
ds/include/audioStereoMode.hpp Adds move constructor/assignment to AudioStereoMode (public API surface).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rpc/srv/dsAudio.c
Comment on lines 1509 to 1511
catch(...) {
_DolbyVolumeMode = "FALSE";
//coverity fix: UNUSED_VALUE - removed redundant assignment, already initialized to "FALSE" at line 1498
}
Comment on lines +68 to +70
//coverity fix: MISSING_MOVE_ASSIGNMENT - add move operations
AudioStereoMode(AudioStereoMode&&) = default;
AudioStereoMode& operator=(AudioStereoMode&&) = default;
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.

3 participants