diff options
-rw-r--r-- | drivers/crypto/geode-aes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c index f9a34abbf4fa..711e246e1ef0 100644 --- a/drivers/crypto/geode-aes.c +++ b/drivers/crypto/geode-aes.c | |||
@@ -110,8 +110,7 @@ geode_aes_crypt(struct geode_aes_op *op) | |||
110 | * we don't need to worry | 110 | * we don't need to worry |
111 | */ | 111 | */ |
112 | 112 | ||
113 | if (op->src == op->dst) | 113 | flags |= (AES_CTRL_DCA | AES_CTRL_SCA); |
114 | flags |= (AES_CTRL_DCA | AES_CTRL_SCA); | ||
115 | 114 | ||
116 | if (op->dir == AES_DIR_ENCRYPT) | 115 | if (op->dir == AES_DIR_ENCRYPT) |
117 | flags |= AES_CTRL_ENCRYPT; | 116 | flags |= AES_CTRL_ENCRYPT; |