summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2026-07-16 16:02:48 +0200
committerMikulas Patocka <mpatocka@redhat.com>2026-07-16 16:02:48 +0200
commit22eb919f1b7900e2af0e952b1f1bee522f612b4a (patch)
treea24d599cdfeaf287b235ba57485d12f8d24ccf50 /drivers/md
parentcd516571e975b2d2ed4aeac47c87a3064e2b2633 (diff)
downloadlinux-next-22eb919f1b7900e2af0e952b1f1bee522f612b4a.tar.gz
linux-next-22eb919f1b7900e2af0e952b1f1bee522f612b4a.zip
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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-inlinecrypt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-inlinecrypt.c b/drivers/md/dm-inlinecrypt.c
index 41293c18d10f..863cb471e95e 100644
--- a/drivers/md/dm-inlinecrypt.c
+++ b/drivers/md/dm-inlinecrypt.c
@@ -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;