Commit 684d777a authored by zhong jiang's avatar zhong jiang Committed by David S. Miller

net: toshiba: remove a redundant local variable 'index_specified'

The local variable 'index_specified' is never used after being assigned.
hence it should be redundant adn can be removed.
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23d9f553
...@@ -1094,7 +1094,7 @@ static int gelic_wl_get_encode(struct net_device *netdev, ...@@ -1094,7 +1094,7 @@ static int gelic_wl_get_encode(struct net_device *netdev,
struct gelic_wl_info *wl = port_wl(netdev_priv(netdev)); struct gelic_wl_info *wl = port_wl(netdev_priv(netdev));
struct iw_point *enc = &data->encoding; struct iw_point *enc = &data->encoding;
unsigned long irqflag; unsigned long irqflag;
unsigned int key_index, index_specified; unsigned int key_index;
int ret = 0; int ret = 0;
pr_debug("%s: <-\n", __func__); pr_debug("%s: <-\n", __func__);
...@@ -1105,13 +1105,10 @@ static int gelic_wl_get_encode(struct net_device *netdev, ...@@ -1105,13 +1105,10 @@ static int gelic_wl_get_encode(struct net_device *netdev,
return -EINVAL; return -EINVAL;
spin_lock_irqsave(&wl->lock, irqflag); spin_lock_irqsave(&wl->lock, irqflag);
if (key_index) { if (key_index)
index_specified = 1;
key_index--; key_index--;
} else { else
index_specified = 0;
key_index = wl->current_key; key_index = wl->current_key;
}
if (wl->group_cipher_method == GELIC_WL_CIPHER_WEP) { if (wl->group_cipher_method == GELIC_WL_CIPHER_WEP) {
switch (wl->auth_method) { switch (wl->auth_method) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment