And fix previous comment once more... :)

This commit is contained in:
Milan Broz
2012-11-30 13:52:03 +01:00
parent eac953c6e4
commit 4f7262aa96
2 changed files with 2 additions and 2 deletions

View File

@@ -512,7 +512,7 @@ static int TCRYPT_init_hdr(struct crypt_device *cd,
break;
}
if (skipped == i || r == -ENOTSUP)
if ((skipped && skipped == i) || r == -ENOTSUP)
log_err(cd, _("Required kernel crypto interface not available.\n"
"Ensure you have algif_skcipher kernel module loaded.\n"));
if (r < 0)

View File

@@ -512,7 +512,7 @@ static int action_benchmark(int arg __attribute__((unused)))
log_std("%11s %4db %12s %12s\n", cipher,
bciphers[i].key_size*8, _("N/A"), _("N/A"));
}
if (skipped == i)
if (skipped && skipped == i)
r = -ENOTSUP;
}