wireless: checkpatch cleanups
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
092427be8c
commit
93a3b607e6
@ -6408,10 +6408,9 @@ static int airo_set_encode(struct net_device *dev,
|
||||
set_wep_key(local, index, NULL, 0, perm, 1);
|
||||
} else
|
||||
/* Don't complain if only change the mode */
|
||||
if(!(dwrq->flags & IW_ENCODE_MODE)) {
|
||||
if (!(dwrq->flags & IW_ENCODE_MODE))
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
/* Read the flags */
|
||||
if(dwrq->flags & IW_ENCODE_DISABLED)
|
||||
local->config.authType = AUTH_OPEN; // disable encryption
|
||||
|
@ -1759,10 +1759,9 @@ static int atmel_set_encode(struct net_device *dev,
|
||||
priv->default_key = index;
|
||||
} else
|
||||
/* Don't complain if only change the mode */
|
||||
if (!(dwrq->flags & IW_ENCODE_MODE)) {
|
||||
if (!(dwrq->flags & IW_ENCODE_MODE))
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
/* Read the flags */
|
||||
if (dwrq->flags & IW_ENCODE_DISABLED) {
|
||||
priv->wep_is_on = 0;
|
||||
|
@ -32,11 +32,9 @@ static inline void libertas_postpone_association_work(wlan_private *priv)
|
||||
static inline void libertas_cancel_association_work(wlan_private *priv)
|
||||
{
|
||||
cancel_delayed_work(&priv->assoc_work);
|
||||
if (priv->adapter->pending_assoc_req) {
|
||||
kfree(priv->adapter->pending_assoc_req);
|
||||
priv->adapter->pending_assoc_req = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user