mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
drivers/net/rtl8169.c: Fix GCC 4.6 build warning
Fix: rtl8169.c: In function 'rtl_init': rtl8169.c:742:13: warning: variable 'printed_version' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
a3cfb39b72
commit
afb92010b2
1 changed files with 0 additions and 3 deletions
|
@ -739,7 +739,6 @@ INIT - Look for an adapter, this routine's visible to the outside
|
||||||
static int rtl_init(struct eth_device *dev, bd_t *bis)
|
static int rtl_init(struct eth_device *dev, bd_t *bis)
|
||||||
{
|
{
|
||||||
static int board_idx = -1;
|
static int board_idx = -1;
|
||||||
static int printed_version = 0;
|
|
||||||
int i, rc;
|
int i, rc;
|
||||||
int option = -1, Cap10_100 = 0, Cap1000 = 0;
|
int option = -1, Cap10_100 = 0, Cap1000 = 0;
|
||||||
|
|
||||||
|
@ -751,8 +750,6 @@ static int rtl_init(struct eth_device *dev, bd_t *bis)
|
||||||
|
|
||||||
board_idx++;
|
board_idx++;
|
||||||
|
|
||||||
printed_version = 1;
|
|
||||||
|
|
||||||
/* point to private storage */
|
/* point to private storage */
|
||||||
tpc = &tpx;
|
tpc = &tpx;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue