dm-inlinecrypt: don't overwrite the error with -EINVAL

get_key_size already returns -EINVAL on error, so we don't have to
overwrite it again. No functional change.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
Mikulas Patocka 2026-07-16 16:02:48 +02:00
parent cd516571e9
commit 22eb919f1b

View File

@ -347,7 +347,6 @@ static int inlinecrypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
err = get_key_size(&argv[1]);
if (err < 0) {
ti->error = "Cannot parse key size";
err = -EINVAL;
goto bad;
}
ctx->key_size = err;