Commit 9b512431 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: remove nosense #if 1 directive

This commit removes #if 1 directive from code to
improve readability. It is always true, so it makes
no sense to have it there.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0d3777c
...@@ -966,7 +966,6 @@ static int ks_wlan_get_encode(struct net_device *dev, ...@@ -966,7 +966,6 @@ static int ks_wlan_get_encode(struct net_device *dev,
dwrq->length = priv->reg.wep_key[index].size; dwrq->length = priv->reg.wep_key[index].size;
if (dwrq->length > 16) if (dwrq->length > 16)
dwrq->length = 0; dwrq->length = 0;
#if 1 /* IW_ENCODE_NOKEY; */
if (dwrq->length) { if (dwrq->length) {
if ((index >= 0) && (index < 4)) if ((index >= 0) && (index < 4))
memcpy(extra, priv->reg.wep_key[index].val, memcpy(extra, priv->reg.wep_key[index].val,
...@@ -974,7 +973,7 @@ static int ks_wlan_get_encode(struct net_device *dev, ...@@ -974,7 +973,7 @@ static int ks_wlan_get_encode(struct net_device *dev,
} else { } else {
memcpy(extra, zeros, dwrq->length); memcpy(extra, zeros, dwrq->length);
} }
#endif
return 0; return 0;
} }
......
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