minor derivative to reduce compiler warnings and tag read-only parameters as const.

Dependents:   EthernetInterface

Fork of lwip-eth by mbed official

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Tue Jul 07 14:08:52 2015 +0000
Parent:
27:fde88aaaea28
Commit message:
Eliminate 2 compiler warnings by initializing values

Changed in this revision

arch/TARGET_NXP/lpc_phy_dp83848.c Show annotated file Show diff for this revision Revisions of this file
diff -r fde88aaaea28 -r dd496edab2cc arch/TARGET_NXP/lpc_phy_dp83848.c
--- a/arch/TARGET_NXP/lpc_phy_dp83848.c	Mon Jun 15 07:15:45 2015 +0100
+++ b/arch/TARGET_NXP/lpc_phy_dp83848.c	Tue Jul 07 14:08:52 2015 +0000
@@ -314,7 +314,7 @@
  */
 err_t lpc_phy_init(struct netif *netif, int rmii)
 {
-	u32_t tmp;
+	u32_t tmp = 0;
 	s32_t i;
 
 	physts.phy_speed_100mbs = olddphysts.phy_speed_100mbs = 0;