Skip to content

Commit

Permalink
rbd/cls_rbd: silence compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: xiexingguo <[email protected]>
  • Loading branch information
xiexingguo committed Oct 7, 2016
1 parent 61ffc1c commit ff617e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cls/rbd/cls_rbd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ int get_data_pool(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
{
CLS_LOG(20, "get_data_pool");

int64_t data_pool_id;
int64_t data_pool_id = -1;
int r = read_key(hctx, "data_pool_id", &data_pool_id);
if (r == -ENOENT) {
data_pool_id = -1;
Expand Down

0 comments on commit ff617e9

Please sign in to comment.