Skip to content

Commit 33a2116

Browse files
reduce variable scope
1 parent ba29bd9 commit 33a2116

File tree

1 file changed

+2
-2
lines changed
  • features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/TARGET_LPCTarget

1 file changed

+2
-2
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/TARGET_LPCTarget/lpc17_emac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ static err_t lpc_low_level_output(struct netif *netif, struct pbuf *p)
557557
u8_t *dst;
558558
u32_t idx, notdmasafe = 0;
559559
struct pbuf *np;
560-
s32_t count, dn;
560+
s32_t dn;
561561

562562
/* Zero-copy TX buffers may be fragmented across mutliple payload
563563
chains. Determine the number of descriptors needed for the
@@ -611,7 +611,7 @@ static err_t lpc_low_level_output(struct netif *netif, struct pbuf *p)
611611
/* Wait until enough descriptors are available for the transfer. */
612612
/* THIS WILL BLOCK UNTIL THERE ARE ENOUGH DESCRIPTORS AVAILABLE */
613613
#if NO_SYS == 0
614-
for (count = 0; count < dn; count++) {
614+
for (s32_t count = 0; count < dn; count++) {
615615
osSemaphoreAcquire(lpc_enetif->xTXDCountSem.id, osWaitForever);
616616
}
617617
MBED_ASSERT(dn <= lpc_tx_ready(netif));

0 commit comments

Comments
 (0)