tty: Use termios c_*flag macros
Expressions of the form "tty->termios.c_*flag & FLAG" are more clearly expressed with the termios flags macros, I_FLAG(), C_FLAG(), O_FLAG(), and L_FLAG(). Convert treewide. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Acked-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
此提交包含在:
@@ -569,8 +569,7 @@ void jsm_input(struct jsm_channel *ch)
|
||||
*If the device is not open, or CREAD is off, flush
|
||||
*input data and return immediately.
|
||||
*/
|
||||
if (!tp ||
|
||||
!(tp->termios.c_cflag & CREAD) ) {
|
||||
if (!tp || !C_CREAD(tp)) {
|
||||
|
||||
jsm_dbg(READ, &ch->ch_bd->pci_dev,
|
||||
"input. dropping %d bytes on port %d...\n",
|
||||
|
新增問題並參考
封鎖使用者