[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yn4DyxIUBsEQxj+t@hovoldconsulting.com>
Date: Fri, 13 May 2022 09:07:55 +0200
From: Johan Hovold <johan@...nel.org>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Cc: linux-serial@...r.kernel.org, Greg KH <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/5] tty/termbits: remove #ifdef BOTHER that is always
defined
On Wed, May 11, 2022 at 01:11:36PM +0300, Ilpo Järvinen wrote:
> BOTHER is defined by all architectures.
This changed quite recently so please mention the commit in question.
No need for the verbose Subject here either.
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
> ---
> drivers/tty/mxser.c | 2 --
> drivers/tty/tty_baudrate.c | 20 +++++---------------
> drivers/tty/tty_ioctl.c | 2 --
> 3 files changed, 5 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c
> index 6ebd3e4ed859..9ea7bd059d0f 100644
> --- a/drivers/tty/mxser.c
> +++ b/drivers/tty/mxser.c
> @@ -528,7 +528,6 @@ static int mxser_set_baud(struct tty_struct *tty, speed_t newspd)
> outb(quot >> 8, info->ioaddr + UART_DLM); /* MS of divisor */
> outb(cval, info->ioaddr + UART_LCR); /* reset DLAB */
>
> -#ifdef BOTHER
> if (C_BAUD(tty) == BOTHER) {
> quot = MXSER_BAUD_BASE % newspd;
> quot *= 8;
> @@ -540,7 +539,6 @@ static int mxser_set_baud(struct tty_struct *tty, speed_t newspd)
>
> mxser_set_must_enum_value(info->ioaddr, quot);
> } else
> -#endif
> mxser_set_must_enum_value(info->ioaddr, 0);
When removing the ifdef, please add the missing bracket to the else
branch as per the coding standard.
Johan
Powered by blists - more mailing lists