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

rbd: make sure the return-value 'r' will be returned. #24891

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

irides
Copy link
Contributor

@irides irides commented Nov 2, 2018

The return-value r is declared again in the for-loop and thus the error code -EINVAL will not be returned successfully.

Here is the error code need to be returned:

Signed-off-by: Shiyang Ruan ruansy.fnst@cn.fujitsu.com

Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

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

lgtm

@dillaman dillaman merged commit b3fc22e into ceph:master Nov 5, 2018
@irides irides deleted the fix-return-value branch November 6, 2018 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants