Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305815
| From | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 6/8] serial: core: Remove cast from void ptr in uart_open() |
| Date | 2016-01-11 05:30 +0100 |
| Message-ID | <qPChd-5Gm-21@gated-at.bofh.it> (permalink) |
| References | <qPChc-5Gm-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
void * promotes to any pointer type; remove type cast.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
---
drivers/tty/serial/serial_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index f77be14..530b892 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -1580,7 +1580,7 @@ static void uart_dtr_rts(struct tty_port *port, int onoff)
*/
static int uart_open(struct tty_struct *tty, struct file *filp)
{
- struct uart_driver *drv = (struct uart_driver *)tty->driver->driver_state;
+ struct uart_driver *drv = tty->driver->driver_state;
int retval, line = tty->index;
struct uart_state *state = drv->state + line;
struct tty_port *port = &state->port;
--
2.7.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 6/8] serial: core: Remove cast from void ptr in uart_open() Peter Hurley <peter@hurleysoftware.com> - 2016-01-11 05:30 +0100
csiph-web