1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/slipdev: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 7be829c7e7
commit 7715c7cdc0

View File

@ -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;
}