mirror of
https://github.com/torvalds/linux.git
synced 2026-09-27 11:02:03 +02:00
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:
parent
cd516571e9
commit
22eb919f1b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user