summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-01-10 16:57:32 +0000
committerTheodore Ts'o <tytso@mit.edu>2017-02-06 23:25:53 -0500
commit02680b31a0b3757e121d27223b6fe21778f52408 (patch)
tree4258f6cca83a01f1f03a57b7400867bad4d4bde9 /fs
parenta5d431eff2e0bb22156897435aa277ddc96074f7 (diff)
downloadlinux-02680b31a0b3757e121d27223b6fe21778f52408.tar.bz2
fscrypt: remove redundant assignment of res
res is assigned to sizeof(ctx), however, this is unused and res is updated later on without that assigned value to res ever being used. Remove this redundant assignment. Fixes CoverityScan CID#1395546 "Unused value" Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/crypto/keyinfo.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/crypto/keyinfo.c b/fs/crypto/keyinfo.c
index eeb6fd67ea17..02eb6b9e4438 100644
--- a/fs/crypto/keyinfo.c
+++ b/fs/crypto/keyinfo.c
@@ -211,7 +211,6 @@ retry:
ctx.contents_encryption_mode = FS_ENCRYPTION_MODE_AES_256_XTS;
ctx.filenames_encryption_mode = FS_ENCRYPTION_MODE_AES_256_CTS;
memset(ctx.master_key_descriptor, 0x42, FS_KEY_DESCRIPTOR_SIZE);
- res = sizeof(ctx);
} else if (res != sizeof(ctx)) {
return -EINVAL;
}