From 7715c7cdc0bc37bad130d4f0390bd6dca3967612 Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Sun, 6 Jan 2019 22:54:44 +0100 Subject: [PATCH] drivers/slipdev: do normal assignment instead of memcpy --- drivers/slipdev/slipdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/slipdev/slipdev.c b/drivers/slipdev/slipdev.c index 430c26b241..7880008e15 100644 --- a/drivers/slipdev/slipdev.c +++ b/drivers/slipdev/slipdev.c @@ -200,7 +200,7 @@ static const netdev_driver_t slip_driver = { void slipdev_setup(slipdev_t *dev, const slipdev_params_t *params) { /* set device descriptor fields */ - memcpy(&dev->config, params, sizeof(dev->config)); + dev->config = *params; dev->inesc = 0U; dev->netdev.driver = &slip_driver; }