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

Simplify QEMU write path #2923

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Nov 19, 2024

Signed-off-by: Tamir Duberstein [email protected]

@tamird
Copy link
Contributor Author

tamird commented Nov 19, 2024

r? @nirs

if err != nil {
return 0, err
}
start += nw
b = b[n:]
Copy link
Member

Choose a reason for hiding this comment

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

The new code saves one line, but it makes the intent of the code less clear, and in case of errors it is harder to report how many bytes we copied. I would keep the code as is but lets see what others think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nirs nirs requested a review from balajiv113 November 19, 2024 18:19
Signed-off-by: Tamir Duberstein <[email protected]>
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.

2 participants