diff options
author | Julia Lawall <julia@diku.dk> | 2009-07-27 15:59:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 15:02:06 -0400 |
commit | 2e9ab1e72c631041f8a1c1d1fc7e5359e7e4a476 (patch) | |
tree | e406613de660461b9b5c45f4b27595501b3d5cf7 /drivers/staging/vt6656/iwctl.c | |
parent | 658ce9d653056a537df70e3a796654446fc9ff64 (diff) |
Staging: Correct use of ! and &
Correct priority problem in the use of ! and &.
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@ expression E; constant C; @@
- !E & C
+ !(E & C)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/iwctl.c')
-rw-r--r-- | drivers/staging/vt6656/iwctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/iwctl.c b/drivers/staging/vt6656/iwctl.c index e4fdb6fc6ea..96f2a78994b 100644 --- a/drivers/staging/vt6656/iwctl.c +++ b/drivers/staging/vt6656/iwctl.c | |||
@@ -1409,8 +1409,7 @@ int iwctl_siwencode(struct net_device *dev, | |||
1409 | // Do we want to just set the transmit key index ? | 1409 | // Do we want to just set the transmit key index ? |
1410 | if ( index < 4 ) { | 1410 | if ( index < 4 ) { |
1411 | pDevice->byKeyIndex = index; | 1411 | pDevice->byKeyIndex = index; |
1412 | } | 1412 | } else if (!(wrq->flags & IW_ENCODE_MODE)) { |
1413 | else if(!wrq->flags & IW_ENCODE_MODE) { | ||
1414 | rc = -EINVAL; | 1413 | rc = -EINVAL; |
1415 | return rc; | 1414 | return rc; |
1416 | } | 1415 | } |