From: Tyler Hicks Date: Sat, 6 Apr 2013 06:26:22 +0000 (-0700) Subject: eCryptfs: Combine encrypt_scatterlist() and decrypt_scatterlist() X-Git-Tag: v3.11-rc1~30^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a699400a707953368e970b37bb8765fdb08015;p=pandora-kernel.git eCryptfs: Combine encrypt_scatterlist() and decrypt_scatterlist() These two functions are identical except for a debug printk and whether they call crypto_ablkcipher_encrypt() or crypto_ablkcipher_decrypt(), so they can be safely merged if the caller can indicate if encryption or decryption should occur. The debug printk is useless so it is removed. Two new #define's are created to indicate if an ENCRYPT or DECRYPT operation is desired. Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed