wireless: checkpatch cleanups

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
Jeff Garzik 2007-11-23 21:50:20 -05:00 committed by David S. Miller
parent 092427be8c
commit 93a3b607e6
8 changed files with 14 additions and 18 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;
}
}
/**