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

Fix static scan issue: dead code and unused value #34

Merged

Conversation

jiaxuan-guo
Copy link
Contributor

OAM-124684

@@ -647,6 +647,9 @@ UsbdSetupHdlr (
DEBUG ((DEBUG_INFO, "USB_REQ_SET_ADDRESS\n"));
if (CtrlRequest->RequestType == USB_RT_TX_DIR_H_TO_D) {
Status = UsbdSetAddress ((UINT8)CtrlRequest->Value);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UsbdSetAddress: EFI_DEVICE_ERROR\n"));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

no return ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prefer to keep the previous code flow since this might just be a warning.

@@ -590,6 +590,9 @@ UsbdSetupHdlr (
CtrlRequest->Length,
&(mCtrlIoReq.IoInfo.Length)
);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UsbdGetStringDesc() - EFI_DEVICE_ERROR"));
Copy link
Contributor

Choose a reason for hiding this comment

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

return?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same

@sysopenci sysopenci added PR approved and removed Pending PR Review Pending PR Review labels Sep 20, 2024
@jiaxuan-guo jiaxuan-guo changed the title [Coverity_ivi_A14]Coverity issue investigation for efiwrapper component Fix static scan issue: dead code and unused value Sep 20, 2024
@sysopenci sysopenci removed the Pending Developer Approval Pending Developer Approval label Sep 20, 2024
@sysopenci
Copy link

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci
Copy link

SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci sysopenci added Engineering Build Successful Engineering Build Successful and removed Engineering Build Not Started Engineering Build Not Started labels Sep 20, 2024
1. cmd couldn't be NULL
2. redundant check for EfiResetShutdown

Tracked-On: OAM-124684
Signed-off-by: Guo, Jade <[email protected]>
The return values of some functions are ignored. Add DEBUG log while continue
the code flow without quit early.
Include: UsbdSetAddress UsbdGetStringDesc UsbdGetConfigDesc UsbdGetConfig UsbdSetConfig
UsbdGetStatus VirtioRpmbInitialize

Tracked-On: OAM-124684
Signed-off-by: Guo, Jade <[email protected]>
@sysopenci
Copy link

Android CI has started MERGE Build for this pr ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci sysopenci merged commit ad3d14a into projectceladon:celadon/u/mr0/master Sep 21, 2024
22 checks passed
@sysopenci
Copy link

Android CI has completed MERGE Build for this pr, build is SUCCESS. Please check the linked Tracked-On issue/Android CI Web for more details. For Binaries: /cactus-absp-or-local/celadon_umr0_master-merge/118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants