diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c index 1e35c1f6db..ac5085a9c6 100644 --- a/src/storage/storage_backend_rbd.c +++ b/src/storage/storage_backend_rbd.c @@ -484,10 +484,7 @@ static int virStorageBackendRBDCreateImage(rados_ioctx_t io, char *name, long capacity) { int order = 0; - if (rbd_create(io, name, capacity, &order) < 0) - return -1; - - return 0; + return rbd_create(io, name, capacity, &order); } static int