]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
mkfs: removed unused dft var from open_config_file mkfs-config
authorEric Sandeen <sandeen@redhat.com>
Tue, 19 Jun 2018 20:43:05 +0000 (15:43 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 19 Jun 2018 20:43:05 +0000 (15:43 -0500)
This should have been removed when I removed the dft->type
tracking.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/config.c
mkfs/config.h
mkfs/xfs_mkfs.c

index 70d752ce028283c4a9d689ba884eed068746df14..e4534c3773041b4c8c7c31423a04cfbf399eb816 100644 (file)
@@ -549,9 +549,8 @@ config_stat_check(
  * If not specified or if above fails, try either cli-spec'd file or "default"
  * in MKFS_XFS_CONF_DIR.
  *
- * If any config file is successfully opened, dft->type is set to reflect the
- * source, an fd is returned, and the absolute path is returned in **fpath,
- * which must be free()'d by the caller.
+ * If any config file is successfully opened, an fd is returned, and the
+ * absolute path is returned in **fpath, which must be free()'d by the caller.
  *
  * If a cli-specified file is not found -1 is returned and errno set. Otherwise
  * the file descriptor is returned.
@@ -559,7 +558,6 @@ config_stat_check(
 int
 open_config_file(
        const char                      *config_file,
-       struct mkfs_default_params      *dft,
        char                            **fpath)
 {
        int                             dirfd = -1, fd = -1, len, ret = 0;
index f4af2c7f2a46543b2420bf1412f627b8fefca690..d33834744111552e09d42debdd3f82239a67b661 100644 (file)
@@ -79,7 +79,6 @@ struct mkfs_default_params {
 int
 open_config_file(
        const char                      *cli_config_file,
-       struct mkfs_default_params      *dft,
        char                            **fpath);
 
 int
index 9d85eab4c7014fd7da24845b6dc41d45a563f958..98021505e13ca02e227e30064aa2fd4c3ce95d35 100644 (file)
@@ -3791,7 +3791,7 @@ _("respecification of configuration not allowed\n"));
                }
        }
 
-       fd = open_config_file(cli_config_file, &dft, &config_file);
+       fd = open_config_file(cli_config_file, &config_file);
        if (fd >= 0) {
                ret = parse_defaults_file(fd, &dft, config_file);
                if (ret) {