diff mbox

fscrypt: remove unused 'mode' member of fscrypt_ctx

Message ID 20170105200130.36694-1-ebiggers3@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Biggers Jan. 5, 2017, 8:01 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

Nothing reads or writes fscrypt_ctx.mode, and it doesn't belong there
because a fscrypt_ctx is not tied to a specific encryption mode.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 include/linux/fscrypto.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Theodore Ts'o Jan. 8, 2017, 6:09 a.m. UTC | #1
On Thu, Jan 05, 2017 at 12:01:30PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Nothing reads or writes fscrypt_ctx.mode, and it doesn't belong there
> because a fscrypt_ctx is not tied to a specific encryption mode.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>

Thanks, applied.

				- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/fscrypto.h b/include/linux/fscrypto.h
index 2a2815702095..8635ea46ef6e 100644
--- a/include/linux/fscrypto.h
+++ b/include/linux/fscrypto.h
@@ -35,7 +35,6 @@  struct fscrypt_ctx {
 		struct list_head free_list;	/* Free list */
 	};
 	u8 flags;				/* Flags */
-	u8 mode;				/* Encryption mode for tfm */
 };
 
 /**