Skip to content

Commit ad4a9f6

Browse files
nathanchancegregkh
authored andcommitted
tty: synclink_gt: Adjust indentation in several functions
[ Upstream commit 446e768 ] Clang warns: ../drivers/tty/synclink_gt.c:1337:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] if (C_CRTSCTS(tty)) { ^ ../drivers/tty/synclink_gt.c:1335:2: note: previous statement is here if (I_IXOFF(tty)) ^ ../drivers/tty/synclink_gt.c:2563:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] if (I_BRKINT(info->port.tty) || I_PARMRK(info->port.tty)) ^ ../drivers/tty/synclink_gt.c:2561:2: note: previous statement is here if (I_INPCK(info->port.tty)) ^ ../drivers/tty/synclink_gt.c:3221:3: warning: misleading indentation; statement is not part of the previous 'else' [-Wmisleading-indentation] set_signals(info); ^ ../drivers/tty/synclink_gt.c:3219:2: note: previous statement is here else ^ 3 warnings generated. The indentation on these lines is not at all consistent, tabs and spaces are mixed together. Convert to just using tabs to be consistent with the Linux kernel coding style and eliminate these warnings from clang. Link: ClangBuiltLinux/linux#822 Signed-off-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 0317ae3 commit ad4a9f6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/tty/synclink_gt.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,10 +1349,10 @@ static void throttle(struct tty_struct * tty)
13491349
DBGINFO(("%s throttle\n", info->device_name));
13501350
if (I_IXOFF(tty))
13511351
send_xchar(tty, STOP_CHAR(tty));
1352-
if (C_CRTSCTS(tty)) {
1352+
if (C_CRTSCTS(tty)) {
13531353
spin_lock_irqsave(&info->lock,flags);
13541354
info->signals &= ~SerialSignal_RTS;
1355-
set_signals(info);
1355+
set_signals(info);
13561356
spin_unlock_irqrestore(&info->lock,flags);
13571357
}
13581358
}
@@ -1374,10 +1374,10 @@ static void unthrottle(struct tty_struct * tty)
13741374
else
13751375
send_xchar(tty, START_CHAR(tty));
13761376
}
1377-
if (C_CRTSCTS(tty)) {
1377+
if (C_CRTSCTS(tty)) {
13781378
spin_lock_irqsave(&info->lock,flags);
13791379
info->signals |= SerialSignal_RTS;
1380-
set_signals(info);
1380+
set_signals(info);
13811381
spin_unlock_irqrestore(&info->lock,flags);
13821382
}
13831383
}
@@ -2576,8 +2576,8 @@ static void change_params(struct slgt_info *info)
25762576
info->read_status_mask = IRQ_RXOVER;
25772577
if (I_INPCK(info->port.tty))
25782578
info->read_status_mask |= MASK_PARITY | MASK_FRAMING;
2579-
if (I_BRKINT(info->port.tty) || I_PARMRK(info->port.tty))
2580-
info->read_status_mask |= MASK_BREAK;
2579+
if (I_BRKINT(info->port.tty) || I_PARMRK(info->port.tty))
2580+
info->read_status_mask |= MASK_BREAK;
25812581
if (I_IGNPAR(info->port.tty))
25822582
info->ignore_status_mask |= MASK_PARITY | MASK_FRAMING;
25832583
if (I_IGNBRK(info->port.tty)) {
@@ -3208,7 +3208,7 @@ static int tiocmset(struct tty_struct *tty,
32083208
info->signals &= ~SerialSignal_DTR;
32093209

32103210
spin_lock_irqsave(&info->lock,flags);
3211-
set_signals(info);
3211+
set_signals(info);
32123212
spin_unlock_irqrestore(&info->lock,flags);
32133213
return 0;
32143214
}
@@ -3219,7 +3219,7 @@ static int carrier_raised(struct tty_port *port)
32193219
struct slgt_info *info = container_of(port, struct slgt_info, port);
32203220

32213221
spin_lock_irqsave(&info->lock,flags);
3222-
get_signals(info);
3222+
get_signals(info);
32233223
spin_unlock_irqrestore(&info->lock,flags);
32243224
return (info->signals & SerialSignal_DCD) ? 1 : 0;
32253225
}
@@ -3234,7 +3234,7 @@ static void dtr_rts(struct tty_port *port, int on)
32343234
info->signals |= SerialSignal_RTS | SerialSignal_DTR;
32353235
else
32363236
info->signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
3237-
set_signals(info);
3237+
set_signals(info);
32383238
spin_unlock_irqrestore(&info->lock,flags);
32393239
}
32403240

0 commit comments

Comments
 (0)