staging:dgnc: Fixed indentation warning
PATCH 1/1 staging:dgnc: Fixed indentation warning
Fixed 'suspect code indent for conditional statements (8, 24)' Warning
Signed-off-by Cristina Moraru <[email protected]>
--- drivers/staging/dgnc/dgnc_cls.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
drivers/staging/dgnc/dgnc_cls.c +7 -6
@@ -628,13 +628,14 @@ static void cls_param(struct tty_struct *tty)* we are in hardware flow control mode, or CLOCAL/FORCEDCD is not set. */ if ((ch->ch_digi.digi_flags &CTSPACE ) || - (ch->ch_digi.digi_flags &RTSPACE ) || - (ch->ch_c_cflag &CRTSCTS ) || - !(ch->ch_digi.digi_flags &DIGI_FORCEDCD ) || - !(ch->ch_c_cflag &CLOCAL )) - ier |=UART_IER_MSI ; + (ch->ch_digi.digi_flags &RTSPACE ) || + (ch->ch_c_cflag &CRTSCTS ) || + !(ch->ch_digi.digi_flags &DIGI_FORCEDCD ) || + !(ch->ch_c_cflag &CLOCAL )) + + ier |=UART_IER_MSI ;else - ier &= ~UART_IER_MSI ; + ier &= ~UART_IER_MSI ; ier |=UART_IER_THRI ;
Signature · 1 line
1.9.1
Quoted 15 lines · Cristina Moraru
Fixed 'suspect code indent for conditional statements (8, 24)' Warning
Signed-off-by Cristina Moraru <[email protected]>--- drivers/staging/dgnc/dgnc_cls.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)drivers/staging/dgnc/dgnc_cls.c +0
-0@@ -628,13 +628,14 @@ static void cls_param(struct tty_struct *tty)* we are in hardware flow control mode, or CLOCAL/FORCEDCD is not set. */ if ((ch->ch_digi.digi_flags & CTSPACE) ||
drivers/staging/dgnc/dgnc_cls.c static void cls_param(struct tty_struct *tty) · line 635
Quoted 10 lines
drivers/staging/dgnc/dgnc_cls.c +5
-5- (ch->ch_digi.digi_flags & RTSPACE) || - (ch->ch_c_cflag & CRTSCTS) || - !(ch->ch_digi.digi_flags & DIGI_FORCEDCD) || - !(ch->ch_c_cflag & CLOCAL)) - ier |=UART_IER_MSI ; + (ch->ch_digi.digi_flags &RTSPACE ) || + (ch->ch_c_cflag &CRTSCTS ) || + !(ch->ch_digi.digi_flags &DIGI_FORCEDCD ) || + !(ch->ch_c_cflag & CLOCAL)) +
I don't think that the blank line is needed.
julia
Quoted 17 lines
drivers/staging/dgnc/dgnc_cls.c +2
-1+ ier |=UART_IER_MSI ; else - ier &= ~UART_IER_MSI ; + ier &= ~UART_IER_MSI; ier |=UART_IER_THRI ;Signature · 8 lines
1.9.1 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1443646292-46803-1-git-send-email-cristina.moraru09%40gmail.com. For more options, visit https://groups.google.com/d/optout.