-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix static scan issue: dead code and unused value #34
Conversation
drivers/dw3/dw3.c
Outdated
@@ -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")); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no return ?
There was a problem hiding this comment.
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.
drivers/dw3/dw3.c
Outdated
@@ -590,6 +590,9 @@ UsbdSetupHdlr ( | |||
CtrlRequest->Length, | |||
&(mCtrlIoReq.IoInfo.Length) | |||
); | |||
if (EFI_ERROR (Status)) { | |||
DEBUG ((DEBUG_INFO, "UsbdGetStringDesc() - EFI_DEVICE_ERROR")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
518ade3
to
7095cee
Compare
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details. |
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]>
Android CI has started MERGE Build for this pr ,Please check the linked Tracked-On issue/Android CI Web for more details. |
ad3d14a
into
projectceladon:celadon/u/mr0/master
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 |
OAM-124684