Skip to content

Commit

Permalink
Merge pull request ceph#24891 from iridescent-rsy/fix-return-value
Browse files Browse the repository at this point in the history
rbd: make sure the return-value 'r' will be returned

Reviewed-by: Jason Dillaman <[email protected]>
  • Loading branch information
Jason Dillaman authored Nov 5, 2018
2 parents e450360 + 5af59e2 commit b3fc22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rbd/action/DiskUsage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static int do_disk_usage(librbd::RBD &rbd, librados::IoCtx &io_ctx,
}

uint64_t features;
int r = image.features(&features);
r = image.features(&features);
if (r < 0) {
std::cerr << "rbd: failed to retrieve image features: " << cpp_strerror(r)
<< std::endl;
Expand Down

0 comments on commit b3fc22e

Please sign in to comment.