-
Notifications
You must be signed in to change notification settings - Fork 658
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
plugins/wdc: Fix code scanning alert #2211
Conversation
Fix for the issue #2204. |
__u32 chunckSize = WDC_DE_VU_READ_BUFFER_STANDARD_OFFSET; | ||
__u32 maximumTransferLength = 0; | ||
__u32 buffSize = 0; | ||
__u64 offsetIdx = 0; |
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.
Please do not mix whitespace changes with code changes.
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.
Sorry for mixing the changes everytime so just split the changes to commits.
474f67f
to
8d6ea5b
Compare
Please use a more fitting commit title. |
8d6ea5b
to
cd21a61
Compare
Delete the loop variable since not changed the value. Also delete the some variables initial values not necessary. Signed-off-by: Tokunori Ikegami <[email protected]>
Fix the comparison of narrow type with wide type in loop condition. Signed-off-by: Tokunori Ikegami <[email protected]>
cd21a61
to
fc584a5
Compare
Sorry for too late to do this and just fixed the commit subject as below. - plugins/wdc: Change for loop index variable type to __u32
+ plugins/wdc: Fix narrow index variable type in for loop to __u32 |
Thanks! |
Fix the comparison of narrow type with wide type in loop condition.
Note: Include some coding style errors fixes.