comparison packages/devs/eth/phy/current/src/eth_phy.c @ 1489:0418d60dd8fb

Clean up warnings
author gthomas
date Mon, 09 Feb 2004 20:23:39 +0000
parents 0832585993c1
children
comparison
equal deleted inserted replaced
1488:d3c32a6f5eb5 1489:0418d60dd8fb
6 // 6 //
7 //========================================================================== 7 //==========================================================================
8 //####ECOSGPLCOPYRIGHTBEGIN#### 8 //####ECOSGPLCOPYRIGHTBEGIN####
9 // ------------------------------------------- 9 // -------------------------------------------
10 // This file is part of eCos, the Embedded Configurable Operating System. 10 // This file is part of eCos, the Embedded Configurable Operating System.
11 // Copyright (C) 2003 Gary Thomas 11 // Copyright (C) 2003, 2004 Gary Thomas
12 // 12 //
13 // eCos is free software; you can redistribute it and/or modify it under 13 // eCos is free software; you can redistribute it and/or modify it under
14 // the terms of the GNU General Public License as published by the Free 14 // the terms of the GNU General Public License as published by the Free
15 // Software Foundation; either version 2 or (at your option) any later version. 15 // Software Foundation; either version 2 or (at your option) any later version.
16 // 16 //
232 unsigned short reset_mode, phy_state; 232 unsigned short reset_mode, phy_state;
233 int i; 233 int i;
234 234
235 if (!f->init_done) { 235 if (!f->init_done) {
236 diag_printf("PHY config without init on PHY: %x\n", f); 236 diag_printf("PHY config without init on PHY: %x\n", f);
237 return; 237 return 0;
238 } 238 }
239 239
240 // Reset PHY (transceiver) 240 // Reset PHY (transceiver)
241 phy_ok = false; 241 phy_ok = false;
242 _eth_phy_reset(f); 242 _eth_phy_reset(f);