aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/pcmcia/synclink_cs.c
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-03-21 15:12:37 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-20 19:42:40 +0200
commitc50c29a806113614098efd8da9fd7b48d605ba45 (patch)
treee3770155a94f64f3f1a61eb444824d504ee28412 /drivers/char/pcmcia/synclink_cs.c
parentaccessiblity: speakup: cleanup comments (diff)
downloadlinux-dev-c50c29a806113614098efd8da9fd7b48d605ba45.tar.xz
linux-dev-c50c29a806113614098efd8da9fd7b48d605ba45.zip
tty: synclink_cs: Use bitwise instead of arithmetic operator for flags
This silences the following coccinelle warning: drivers/s390/char/tape_34xx.c:360:38-39: WARNING: sum of probable bitmasks, consider | we will try to make code cleaner Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Haowen Bai <baihaowen@meizu.com> Link: https://lore.kernel.org/r/1647846757-946-1-git-send-email-baihaowen@meizu.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/pcmcia/synclink_cs.c')
-rw-r--r--drivers/char/pcmcia/synclink_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c
index 78baba55a8b5..e6f2186b5881 100644
--- a/drivers/char/pcmcia/synclink_cs.c
+++ b/drivers/char/pcmcia/synclink_cs.c
@@ -922,7 +922,7 @@ static void rx_ready_async(MGSLPC_INFO *info, int tcd)
// BIT7:parity error
// BIT6:framing error
- if (status & (BIT7 + BIT6)) {
+ if (status & (BIT7 | BIT6)) {
if (status & BIT7)
icount->parity++;
else