mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
serial: 8250_exar: remove useless void * casts
port->private_data is a void pointer. There is no need to cast it when assigning to or from struct exar8250 pointers. So drop the casts. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Assisted-by: LLM Link: https://patch.msgid.link/c9c3f096b01befa764c3ba75457a76a0afa5800d.1791873876.git.jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
106eec1cdb
commit
4f28e10f18
|
|
@ -799,7 +799,7 @@ static int cti_rs485_config_mpio_tristate(struct uart_port *port,
|
|||
struct ktermios *termios,
|
||||
struct serial_rs485 *rs485)
|
||||
{
|
||||
struct exar8250 *priv = (struct exar8250 *)port->private_data;
|
||||
struct exar8250 *priv = port->private_data;
|
||||
int ret;
|
||||
|
||||
ret = generic_rs485_config(port, termios, rs485);
|
||||
|
|
@ -837,7 +837,7 @@ static int cti_port_setup_common(struct exar8250 *priv,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
port->port.private_data = (void *)priv;
|
||||
port->port.private_data = priv;
|
||||
port->port.pm = exar_pm;
|
||||
port->port.shutdown = exar_shutdown;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user