Make fio -Wshadow clean
[fio.git] / client.c
index edc02a0a13416c04fbb546bf2c05799a440bbf84..e9eab8152ce4995adb8fe7d6932d0943d0295235 100644 (file)
--- a/client.c
+++ b/client.c
@@ -654,15 +654,13 @@ static int __fio_client_send_local_ini(struct fio_client *client,
 
        fd = open(filename, O_RDONLY);
        if (fd < 0) {
-               int ret = -errno;
-
+               ret = -errno;
                log_err("fio: job file <%s> open: %s\n", filename, strerror(errno));
                return ret;
        }
 
        if (fstat(fd, &sb) < 0) {
-               int ret = -errno;
-
+               ret = -errno;
                log_err("fio: job file stat: %s\n", strerror(errno));
                close(fd);
                return ret;