diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-17 00:22:40 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 22:00:36 +0400 |
commit | 5355d8cac2a036471c1e739ee5aa1514973ed114 (patch) | |
tree | 83a149347a53e77fcb96f468e116c2e79c87fd03 /drivers/staging/rt3070 | |
parent | f71fb77c29c83ef22ebd07fffd0581f2bec69b62 (diff) | |
download | linux-5355d8cac2a036471c1e739ee5aa1514973ed114.tar.xz |
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 30446a3f563c..229f2cd5960c 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: |