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:
parent
7be829c7e7
commit
7715c7cdc0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user