mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #21095 from benpicco/drivers/at24cxxx-fix_set
drivers/at24cxxx: fix uninitialized return value in `_set()`
This commit is contained in:
commit
91d587f8fa
@ -188,7 +188,7 @@ int _write(const at24cxxx_t *dev, uint32_t pos, const void *data, size_t len)
|
||||
static
|
||||
int _set(const at24cxxx_t *dev, uint32_t pos, uint8_t val, size_t len)
|
||||
{
|
||||
int check;
|
||||
int check = 0;
|
||||
uint8_t set_buffer[AT24CXXX_SET_BUF_SIZE];
|
||||
|
||||
memset(set_buffer, val, sizeof(set_buffer));
|
||||
|
Loading…
Reference in New Issue
Block a user