Commit c50c29a8 authored by Haowen Bai's avatar Haowen Bai Committed by Greg Kroah-Hartman
Browse files

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: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1647846757-946-1-git-send-email-baihaowen@meizu.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0b4efcb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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