Skip to content

Commit faa2f23

Browse files
One more
1 parent 76886f9 commit faa2f23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

general/src/lan8670.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static int mmd_read_register(lan8670_t *lan, uint16_t mmd_addr, uint16_t registe
246246

247247
/* Read data from MMDAD */
248248
uint32_t read = 0;
249-
int status = lan->IO.ReadReg(lan->DevAddr, REG_MMDAD, &read);
249+
status = lan->IO.ReadReg(lan->DevAddr, REG_MMDAD, &read);
250250
if (status != 0) {
251251
debug(lan, "ERROR 4003: mmd_read_register() failed when reading REG_MMDAD (Status: %d)\n", status);
252252
return LAN8670_STATUS_READ_ERROR;
@@ -320,7 +320,7 @@ static int mmd_write_register(lan8670_t *lan, uint16_t mmd_addr, uint16_t regist
320320
static int __attribute__((unused)) mmd_read_register_field(lan8670_t *lan, uint16_t mmd_addr, uint16_t register_offset, int start, int end, uint16_t *value)
321321
{
322322
// NOTE: Remove the __attribute__((unused)) if this function gets used.
323-
323+
324324
/* Validate bit range */
325325
if (start > end) {
326326
debug(lan, "ERROR 6000: mmd_read_register_field() invalid bit range: start (%d) > end (%d)\n", start, end);

0 commit comments

Comments
 (0)