Skip to content
Snippets Groups Projects
Commit 7715c7cd authored by Kees Bakker's avatar Kees Bakker
Browse files

drivers/slipdev: do normal assignment instead of memcpy

parent 7be829c7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment