From: Mark Hounschell Date: Tue, 4 Mar 2014 21:03:11 +0000 (-0500) Subject: staging: dgap: fix suspect code indent for conditional statements checkpatch warning X-Git-Tag: v3.15-rc1~139^2~690 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=af5b80bef9444feb4f39dad2e834e13ca4a25c28;p=karo-tx-linux.git staging: dgap: fix suspect code indent for conditional statements checkpatch warning This patch fixes a checkpatch warning for suspect code indent for conditional statements Signed-off-by: Mark Hounschell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 51f9924eac10..4a4cda298630 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -5475,13 +5475,15 @@ static int dgap_param(struct tty_struct *tty) if ((ch->ch_digi.digi_flags & DIGI_FAST) || (ch->ch_c_cflag & CBAUDEX)) cflag |= HUPCL; - if ((ch->ch_c_cflag & CBAUDEX) && !(ch->ch_digi.digi_flags & DIGI_FAST)) { - /* - * The below code is trying to guarantee that only baud rates - * 115200, 230400, 460800, 921600 are remapped. We use exclusive or - * because the various baud rates share common bit positions - * and therefore can't be tested for easily. - */ + if ((ch->ch_c_cflag & CBAUDEX) && + !(ch->ch_digi.digi_flags & DIGI_FAST)) { + /* + * The below code is trying to guarantee that only + * baud rates 115200, 230400, 460800, 921600 are + * remapped. We use exclusive or because the various + * baud rates share common bit positions and therefore + * can't be tested for easily. + */ tcflag_t tcflag = (ch->ch_c_cflag & CBAUD) | CBAUDEX; int baudpart = 0;