mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
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>
This commit is contained in:
parent
6721ab7f77
commit
37cd0c994f
1 changed files with 1 additions and 1 deletions
|
|
@ -640,7 +640,7 @@ static void uart_get_info(struct tty_port *port,
|
|||
{
|
||||
struct uart_port *uport = state->uart_port;
|
||||
|
||||
memset(retinfo, 0, sizeof(retinfo));
|
||||
memset(retinfo, 0, sizeof(*retinfo));
|
||||
|
||||
retinfo->type = uport->type;
|
||||
retinfo->line = uport->line;
|
||||
|
|
|
|||
Loading…
Reference in a new issue