]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8192e: Remove dead code associated with BUILT_IN_CRYPTO
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 14 Jul 2011 21:54:46 +0000 (16:54 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 02:16:09 +0000 (21:16 -0500)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/internal.h
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_crypto.h

index 3041f0fa5cb453187d0b578b75620686449f4544..00139c271e07cce663ecb888694b18383b248688 100644 (file)
 #include <linux/sched.h>
 #include <asm/kmap_types.h>
 
-#ifdef BUILT_IN_CRYPTO
-#ifdef CONFIG_CRYPTO_HMAC
-#undef CONFIG_CRYPTO_HMAC
-#endif
-
-#ifdef CONFIG_KMOD
-#undef CONFIG_KMOD
-#endif
-#endif /* BUILT_IN_CRYPTO */
-
 extern enum km_type crypto_km_types[];
 
 static inline enum km_type crypto_kmap_type(int out)
index 7fb33c9baa0eef6317539ceb38927ae0bf9249c2..7c89ed87f3bb6baf4c6e2c7ae1f9430b1f350fa4 100644 (file)
@@ -3255,26 +3255,6 @@ static int __init rtl8192_pci_module_init(void)
        int ret;
        int error;
 
-#ifdef BUILT_IN_CRYPTO
-        ret = arc4_init();
-        if (ret) {
-                printk(KERN_ERR "arc4_init() failed %d\n", ret);
-                return ret;
-        }
-
-
-        ret = michael_mic_init();
-        if (ret) {
-                printk(KERN_ERR "michael_mic_init() failed %d\n", ret);
-                return ret;
-        }
-
-        ret = aes_init();
-        if (ret) {
-                printk(KERN_ERR "aes_init() failed %d\n", ret);
-                return ret;
-        }
-#endif
        ret = rtllib_init();
        if (ret) {
                printk(KERN_ERR "rtllib_init() failed %d\n", ret);
@@ -3333,12 +3313,6 @@ static void __exit rtl8192_pci_module_exit(void)
        rtllib_crypto_wep_exit();
        rtllib_crypto_deinit();
        rtllib_exit();
-#ifdef BUILT_IN_CRYPTO
-        arc4_exit();
-        michael_mic_exit();
-        aes_fini();
-#endif
-
 }
 
 void check_rfctrl_gpio_timer(unsigned long data)
index 6f445c58dc03d7a92a21c2f2f5790350830b613d..a8df4101bf2d4dcdef133b6e5d7a0cb7caff58b3 100644 (file)
 #include <asm/page.h>
 #include <asm/errno.h>
 
-#ifdef BUILT_IN_CRYPTO
-#ifdef CONFIG_CRYPTO_HMAC
-#undef CONFIG_CRYPTO_HMAC
-#endif
-
-#ifdef CONFIG_KMOD
-#undef CONFIG_KMOD
-#endif
-#endif /* BUILT_IN_CRYPTO */
-
 #define crypto_register_alg crypto_register_alg_rsl
 #define crypto_unregister_alg crypto_unregister_alg_rsl
 #define crypto_alloc_tfm crypto_alloc_tfm_rsl