There's no point to the gotos in parse_defaults_file; no cleanup
etc that is normally facilitated by a goto, so just remove them.
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>
fp = fdopen(fd, "r");
if (!fp)
- goto out;
+ return -1;
ret = parse_config_stream(dft, config_file, fp);
if (ret) {
fclose(fp);
- goto out;
+ return -1;
}
printf(_("config-file=%s\n"), config_file);
return 0;
-out:
- return -1;
}