]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: twofish-avx - remove useless instruction
authorJohannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>
Thu, 5 Jul 2012 18:43:58 +0000 (20:43 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Jul 2012 03:08:30 +0000 (11:08 +0800)
The register %rdx is written, but never read till the end of the encryption
routine. Therefore let's delete the useless instruction.

Signed-off-by: Johannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/twofish-avx-x86_64-asm_64.S

index fc31b89ba4c3135bd8d00006adcec66802aa12b1..35f45574390d1d0da07305ac031e88119d2eb9c7 100644 (file)
@@ -243,7 +243,6 @@ __twofish_enc_blk_8way:
        popq %rbx;
 
        leaq (4*4*4)(%rsi), %rax;
-       leaq (4*4*4)(%rax), %rdx;
 
        testb %cl, %cl;
        jnz __enc_xor8;