Thread (2 messages) flat view 2 messages, 2 authors, 2012-02-14
STALE5338d

[PATCH] X86, crypto: Remove dead code from twofish_glue_3way.c::init()

From: Jesper Juhl <hidden>
Date: 2012-02-09 22:01:42
Also in: lkml
Subsystem: the rest, x86 architecture (32-bit and 64-bit) · Maintainers: Linus Torvalds, Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen

We can never reach the line just after the 'return 0'
statement. Remove it.

Signed-off-by: Jesper Juhl <redacted>
---
 arch/x86/crypto/twofish_glue_3way.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/x86/crypto/twofish_glue_3way.c b/arch/x86/crypto/twofish_glue_3way.c
index 7fee8c1..adba7b3 100644
--- a/arch/x86/crypto/twofish_glue_3way.c
+++ b/arch/x86/crypto/twofish_glue_3way.c
@@ -659,7 +659,6 @@ int __init init(void)
 
 	return 0;
 
-	crypto_unregister_alg(&blk_xts_alg);
 blk_xts_err:
 	crypto_unregister_alg(&blk_lrw_alg);
 blk_lrw_err:
-- 
1.7.9


PS. Please CC me on replies.

-- 
Jesper Juhl <jj@chaosbits.net>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help