OSDN Git Service

Staging: vt6655: Remove unused function vnt_key_init_table
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 12 Sep 2016 19:08:19 +0000 (00:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 13:01:29 +0000 (15:01 +0200)
The function vnt_key_init_table is not used anywhere in the kernel.
Therefore, remove the function definition and prototype.
Grepped to find occurences.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/key.c
drivers/staging/vt6655/key.h

index ffcaf25..e161d5d 100644 (file)
 #include "key.h"
 #include "mac.h"
 
-int vnt_key_init_table(struct vnt_private *priv)
-{
-       u32 i;
-
-       for (i = 0; i < MAX_KEY_TABLE; i++)
-               MACvDisableKeyEntry(priv, i);
-
-       return 0;
-}
-
 static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr,
        struct ieee80211_key_conf *key, u32 key_type, u32 mode,
        bool onfly_latch)
index 261f818..d727197 100644 (file)
@@ -61,8 +61,6 @@
 
 struct vnt_private;
 
-int vnt_key_init_table(struct vnt_private *);
-
 int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
                 struct ieee80211_vif *vif, struct ieee80211_key_conf *key);