Messages in this thread Patch in this message | | | Date | Tue, 1 Oct 2013 19:31:15 +0800 | From | Fengguang Wu <> | Subject | [PATCH] serial: sccnxp: replace memcpy with struct assignment |
| |
Generated by: coccinelle/misc/memcpy-assign.cocci
CC: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> ---
drivers/tty/serial/sccnxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next.orig/drivers/tty/serial/sccnxp.c 2013-10-01 19:27:55.057537955 +0800 +++ linux-next/drivers/tty/serial/sccnxp.c 2013-10-01 19:28:17.873536923 +0800 @@ -907,7 +907,7 @@ static int sccnxp_probe(struct platform_ } if (pdata) - memcpy(&s->pdata, pdata, sizeof(struct sccnxp_pdata)); + s->pdata = *pdata; if (s->pdata.poll_time_us) { dev_info(&pdev->dev, "Using poll mode, resolution %u usecs\n",
| |