diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-16 22:22:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 11:00:36 -0700 |
commit | 5355d8cac2a036471c1e739ee5aa1514973ed114 (patch) | |
tree | 83a149347a53e77fcb96f468e116c2e79c87fd03 /drivers/staging/rt3070 | |
parent | f71fb77c29c83ef22ebd07fffd0581f2bec69b62 (diff) | |
download | op-kernel-dev-5355d8cac2a036471c1e739ee5aa1514973ed114.zip op-kernel-dev-5355d8cac2a036471c1e739ee5aa1514973ed114.tar.gz |
Staging: fix operator precedence errors
`!' has a higher precedence than `&' and `|' has a higher precedence than `?'
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt3070')
-rw-r--r-- | drivers/staging/rt3070/sta_ioctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/rt3070/sta_ioctl.c b/drivers/staging/rt3070/sta_ioctl.c index 30446a3..229f2cd 100644 --- a/drivers/staging/rt3070/sta_ioctl.c +++ b/drivers/staging/rt3070/sta_ioctl.c @@ -1725,10 +1725,8 @@ int rt_ioctl_siwencode(struct net_device *dev, } else /* Don't complain if only change the mode */ - if(!erq->flags & IW_ENCODE_MODE) - { + if (!(erq->flags & IW_ENCODE_MODE)) return -EINVAL; - } } done: |