Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1667662
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] serial: Delete dead code for CIR serial ports |
| Date | 2017-06-16 13:50 +0200 |
| Message-ID | <tSXVg-7TE-47@gated-at.bofh.it> (permalink) |
| References | <tSFlE-4iZ-19@gated-at.bofh.it> |
| Organization | Intel Finland Oy |
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?
>
> + ret = uart_add_one_port(&serial8250_reg,
> + &uart->port);
Ditto.
> + if (ret == 0)
> + ret = uart->port.line;
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] serial: Delete dead code for CIR serial ports Matthias Brugger <mbrugger@suse.com> - 2017-06-15 18:00 +0200
Re: [PATCH] serial: Delete dead code for CIR serial ports Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-16 13:50 +0200
Re: [PATCH] serial: Delete dead code for CIR serial ports Matthias Brugger <mbrugger@suse.com> - 2017-06-16 17:20 +0200
csiph-web