diff options
author | Andrew Elwell <andrew.elwell@gmail.com> | 2010-02-18 22:56:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-04 15:59:02 (GMT) |
commit | 3f4b4e779714ae2dd55757617a8033ab338fa7f0 (patch) | |
tree | f2da6e379bfa29c6b5b5d55d608cfdfe3e79f746 /drivers/staging/wlan-ng/p80211wext.c | |
parent | ef1a0ed7f1793531e5fb3ee489cb1e2b627f76fd (diff) | |
download | linux-fsl-qoriq-3f4b4e779714ae2dd55757617a8033ab338fa7f0.tar.xz |
Staging: wlan-ng: More checkpatch.pl error cleanups
Signed-off-by: Andrew Elwell <Andrew.Elwell@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211wext.c')
-rw-r--r-- | drivers/staging/wlan-ng/p80211wext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/p80211wext.c b/drivers/staging/wlan-ng/p80211wext.c index 040c9e3..108a806 100644 --- a/drivers/staging/wlan-ng/p80211wext.c +++ b/drivers/staging/wlan-ng/p80211wext.c @@ -549,14 +549,14 @@ static int p80211wext_siwencode(netdevice_t *dev, } /* Check the Key index first. */ - if ((i = (erq->flags & IW_ENCODE_INDEX))) { - + i = (erq->flags & IW_ENCODE_INDEX); + if (i) { if ((i < 1) || (i > NUM_WEPKEYS)) { err = -EINVAL; goto exit; - } else + } else { i--; - + } /* Set current key number only if no keys are given */ if (erq->flags & IW_ENCODE_NOKEY) { result = |