From: Pan Liu Date: Wed, 3 May 2017 11:20:14 +0000 (+0800) Subject: remove redundant _fio_rbd_disconnect, which is already called in X-Git-Tag: fio-2.20~11^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6747f469156d762083470f30b69290528110b5a5;ds=sidebyside remove redundant _fio_rbd_disconnect, which is already called in fio_rbd_cleaup Signed-off-by: Pan Liu --- diff --git a/engines/rbd.c b/engines/rbd.c index 8eeef53b..279b314a 100644 --- a/engines/rbd.c +++ b/engines/rbd.c @@ -597,11 +597,11 @@ static int fio_rbd_setup(struct thread_data *td) r = rbd_stat(rbd->image, &info, sizeof(info)); if (r < 0) { log_err("rbd_status failed.\n"); - goto disconnect; + goto cleanup; } else if (info.size == 0) { log_err("image size should be larger than zero.\n"); r = -EINVAL; - goto disconnect; + goto cleanup; } dprint(FD_IO, "rbd-engine: image size: %lu\n", info.size); @@ -620,8 +620,6 @@ static int fio_rbd_setup(struct thread_data *td) return 0; -disconnect: - _fio_rbd_disconnect(rbd); cleanup: fio_rbd_cleanup(td); return r;