From 815fb010fcba058df43f30fa614cf954dd9e7bcc Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Sat, 16 Mar 2013 22:51:25 +0800 Subject: [PATCH] staging: nvec: fix the '&&' vs '&' typo in nvec_toggle_global_events() Fix the '&&' vs '&' typo. Signed-off-by: Wei Yongjun Acked-By: Marc Dietrich Signed-off-by: Greg Kroah-Hartman --- drivers/staging/nvec/nvec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index cf159365b0ee..a88959f9a07a 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -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; } /** -- 2.30.2