staging: nvec: fix the '&&' vs '&' typo in nvec_toggle_global_events()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 16 Mar 2013 14:51:25 +0000 (22:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:02:55 +0000 (11:02 -0700)
Fix the '&&' vs '&' typo.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-By: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c

index cf159365b0ee19551ff81aa4c5bcbae8b4b055f1..a88959f9a07ab09a82121f81246188d4d1e8aad5 100644 (file)
@@ -352,10 +352,10 @@ static void nvec_toggle_global_events(struct nvec_chip *nvec, bool state)
  */
 static void nvec_event_mask(char *ev, u32 mask)
 {
-       ev[3] = mask >> 16 && 0xff;
-       ev[4] = mask >> 24 && 0xff;
-       ev[5] = mask >> 0  && 0xff;
-       ev[6] = mask >> 8  && 0xff;
+       ev[3] = mask >> 16 & 0xff;
+       ev[4] = mask >> 24 & 0xff;
+       ev[5] = mask >> 0  & 0xff;
+       ev[6] = mask >> 8  & 0xff;
 }
 
 /**