Re: [PATCH] serial: Delete dead code for CIR serial ports

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

 





On 16/06/17 13:43, Andy Shevchenko wrote:
On Thu, 2017-06-15 at 17:54 +0200, Matthias Brugger wrote:
Commit e4fda3a04275 ("serial: don't register CIR serial ports") adds a
check for PORT_8250_CIR to serial8250_register_8250_port(). But the
code
isn't needed as the function never takes the branch when the port is
CIR
serial port.

+		if (serial8250_isa_config != NULL)

+			serial8250_isa_config(0, &uart->port,
+					&uart->capabilities);

Can't it be one line after all?


No, that will exceed the 80 characters by line.


+		ret = uart_add_one_port(&serial8250_reg,
+					&uart->port);

Ditto.


Yes, I'll fix this in v2.

Thanks,
Matthias
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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