]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] drivers/net/wireless/libertas/wext.c: remove dead code
authorAdrian Bunk <bunk@stusta.de>
Sun, 1 Jul 2007 20:20:40 +0000 (22:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2007 18:15:31 +0000 (14:15 -0400)
This patch removes dead code introduced by
commit 90a42210f275e1f828eb6c08bf8252c2d6a774e0 and spotted
by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/wext.c

index f42b796b5e47ed83a1c54c332a64790bd5f32f15..2fcc3bf210817623a8e96dc3a526df968dfa69e7 100644 (file)
@@ -1719,9 +1719,6 @@ static int wlan_set_encodeext(struct net_device *dev,
                        pkey->type = KEY_TYPE_ID_TKIP;
                } else if (alg == IW_ENCODE_ALG_CCMP) {
                        pkey->type = KEY_TYPE_ID_AES;
-               } else {
-                       ret = -EINVAL;
-                       goto out;
                }
 
                /* If WPA isn't enabled yet, do that now */