From: Colin Ian King Date: Tue, 10 Jan 2017 16:57:32 +0000 (+0000) Subject: fscrypt: remove redundant assignment of res X-Git-Tag: v4.11-rc1~148^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02680b31a0b3757e121d27223b6fe21778f52408;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Theodore Ts'o --- diff --git a/fs/crypto/keyinfo.c b/fs/crypto/keyinfo.c index eeb6fd67ea17f..02eb6b9e44387 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; }