mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d0d3777ca2
commit
9b5124319d
1 changed files with 1 additions and 2 deletions
|
|
@ -966,7 +966,6 @@ static int ks_wlan_get_encode(struct net_device *dev,
|
|||
dwrq->length = priv->reg.wep_key[index].size;
|
||||
if (dwrq->length > 16)
|
||||
dwrq->length = 0;
|
||||
#if 1 /* IW_ENCODE_NOKEY; */
|
||||
if (dwrq->length) {
|
||||
if ((index >= 0) && (index < 4))
|
||||
memcpy(extra, priv->reg.wep_key[index].val,
|
||||
|
|
@ -974,7 +973,7 @@ static int ks_wlan_get_encode(struct net_device *dev,
|
|||
} else {
|
||||
memcpy(extra, zeros, dwrq->length);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue