mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/w5100: do normal assignment instead of memcpy
This commit is contained in:
parent
0cceb64ae9
commit
811cda15cb
@ -118,7 +118,7 @@ void w5100_setup(w5100_t *dev, const w5100_params_t *params)
|
||||
dev->nd.context = dev;
|
||||
|
||||
/* initialize the device descriptor */
|
||||
memcpy(&dev->p, params, sizeof(w5100_params_t));
|
||||
dev->p = *params;
|
||||
|
||||
/* initialize the chip select pin and the external interrupt pin */
|
||||
spi_init_cs(dev->p.spi, dev->p.cs);
|
||||
|
Loading…
Reference in New Issue
Block a user