Re: [PATCH 3/5] tty/termbits: remove #ifdef IBSHIFT that is always defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 11, 2022 at 01:11:37PM +0300, Ilpo Järvinen wrote:
> IBSHIFT is defined by all architectures.

This also changed recently so mention the commit in question.

Subject is overly verbose here too.

> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
> ---
>  drivers/tty/tty_baudrate.c | 11 +----------
>  1 file changed, 1 insertion(+), 10 deletions(-)
> 
> diff --git a/drivers/tty/tty_baudrate.c b/drivers/tty/tty_baudrate.c
> index 07bbbfee5635..d10318956c97 100644
> --- a/drivers/tty/tty_baudrate.c
> +++ b/drivers/tty/tty_baudrate.c

> @@ -194,12 +187,10 @@ void tty_termios_encode_baud_rate(struct ktermios *termios,
>  			 */
>  			if (ofound == i && !ibinput)
>  				ifound  = i;
> -#ifdef IBSHIFT
>  			else {
>  				ifound = i;
>  				termios->c_cflag |= (baud_bits[i] << IBSHIFT);
>  			}
> -#endif

Please add the missing brackets to the if branch when removing the ifdef.

Johan



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux