diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2012-09-05 22:27:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-06 12:19:50 -0400 |
commit | 37cd0c994fc8ecbfb258c4be2442d9d6f31447ea (patch) | |
tree | 273cec4f7d6838485d34674a94b4f4dcd2c7ae3a /drivers/tty | |
parent | 6721ab7f77f2614ab43e3de2f908b1d7436331df (diff) |
serial_core: fix sizeof(pointer)
sizeof when applied to a pointer typed expression gives the
size of the pointer.
Generated by: scripts/coccinelle/misc/noderef.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/serial_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 137b25ce39a7..19993d89db37 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c | |||
@@ -640,7 +640,7 @@ static void uart_get_info(struct tty_port *port, | |||
640 | { | 640 | { |
641 | struct uart_port *uport = state->uart_port; | 641 | struct uart_port *uport = state->uart_port; |
642 | 642 | ||
643 | memset(retinfo, 0, sizeof(retinfo)); | 643 | memset(retinfo, 0, sizeof(*retinfo)); |
644 | 644 | ||
645 | retinfo->type = uport->type; | 645 | retinfo->type = uport->type; |
646 | retinfo->line = uport->line; | 646 | retinfo->line = uport->line; |