cryptsetup-generator: drop unused fstat()

The result stopped being used in 71e4e12584.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-24 10:45:25 +02:00
parent 38ee19c04b
commit 115a7fb624

View file

@ -621,7 +621,6 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
static int add_crypttab_devices(void) {
_cleanup_fclose_ FILE *f = NULL;
unsigned crypttab_line = 0;
struct stat st;
int r;
if (!arg_read_crypttab)
@ -634,11 +633,6 @@ static int add_crypttab_devices(void) {
return 0;
}
if (fstat(fileno(f), &st) < 0) {
log_error_errno(errno, "Failed to stat %s: %m", arg_crypttab);
return 0;
}
for (;;) {
_cleanup_free_ char *line = NULL, *name = NULL, *device = NULL, *keyspec = NULL, *options = NULL, *keyfile = NULL, *keydev = NULL;
crypto_device *d = NULL;