Skip to content

Commit

Permalink
Merge pull request #21095 from benpicco/drivers/at24cxxx-fix_set
Browse files Browse the repository at this point in the history
drivers/at24cxxx: fix uninitialized return value in `_set()`
  • Loading branch information
benpicco authored Dec 17, 2024
2 parents 679ac92 + 7ae354f commit 91d587f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/at24cxxx/at24cxxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 91d587f

Please sign in to comment.