mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 10:17:21 +00:00
Minor cleanup
This commit is contained in:
parent
400558b561
commit
59acc296d9
4 changed files with 8 additions and 7 deletions
|
@ -118,7 +118,7 @@ i2c_probe(unsigned char chip)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
i2c_read(unsigned char chip, unsigned int addr, int alen,
|
i2c_read (unsigned char chip, unsigned int addr, int alen,
|
||||||
unsigned char *buffer, int len)
|
unsigned char *buffer, int len)
|
||||||
{
|
{
|
||||||
#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
|
#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
|
||||||
|
|
|
@ -468,7 +468,7 @@ restart:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Main packet reception loop. Loop receiving packets until
|
* Main packet reception loop. Loop receiving packets until
|
||||||
* someone sets `NetQuit'.
|
* someone sets `NetState' to a state that terminates.
|
||||||
*/
|
*/
|
||||||
for (;;) {
|
for (;;) {
|
||||||
WATCHDOG_RESET();
|
WATCHDOG_RESET();
|
||||||
|
@ -503,7 +503,9 @@ restart:
|
||||||
thand_f *x;
|
thand_f *x;
|
||||||
|
|
||||||
#if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII)
|
#if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII)
|
||||||
#if defined(CFG_FAULT_ECHO_LINK_DOWN) && defined(CONFIG_STATUS_LED) && defined(STATUS_LED_RED)
|
# if defined(CFG_FAULT_ECHO_LINK_DOWN) &&
|
||||||
|
defined(CONFIG_STATUS_LED) &&
|
||||||
|
defined(STATUS_LED_RED)
|
||||||
/*
|
/*
|
||||||
* Echo the inverted link state to the fault LED.
|
* Echo the inverted link state to the fault LED.
|
||||||
*/
|
*/
|
||||||
|
@ -512,7 +514,7 @@ restart:
|
||||||
} else {
|
} else {
|
||||||
status_led_set (STATUS_LED_RED, STATUS_LED_ON);
|
status_led_set (STATUS_LED_RED, STATUS_LED_ON);
|
||||||
}
|
}
|
||||||
#endif /* CFG_FAULT_ECHO_LINK_DOWN, ... */
|
# endif /* CFG_FAULT_ECHO_LINK_DOWN, ... */
|
||||||
#endif /* CONFIG_MII, ... */
|
#endif /* CONFIG_MII, ... */
|
||||||
x = timeHandler;
|
x = timeHandler;
|
||||||
timeHandler = (thand_f *)0;
|
timeHandler = (thand_f *)0;
|
||||||
|
|
|
@ -95,7 +95,6 @@ rs5c372_enable(void)
|
||||||
unsigned char buf[RS5C372_RAM_SIZE + 1];
|
unsigned char buf[RS5C372_RAM_SIZE + 1];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
||||||
/* note that this returns reg. 15 in buf[1] */
|
/* note that this returns reg. 15 in buf[1] */
|
||||||
ret = rs5c372_readram(&buf[1], RS5C372_RAM_SIZE);
|
ret = rs5c372_readram(&buf[1], RS5C372_RAM_SIZE);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue