summaryrefslogtreecommitdiff
path: root/drivers/net/mcfmii.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-10-03 13:28:47 +0000
committerjason <jason@jason-ThinkPad-T61.(none)>2012-10-19 23:47:41 +0800
commit2b758cad8dfe8a04ed11340024d814612b912c3c (patch)
treed7266442bab531d23ae22e595868e4b1eee99c3e /drivers/net/mcfmii.c
parentc59ac903f2fb515caf712ec19f4bd741659e6a45 (diff)
downloadu-boot-imx-2b758cad8dfe8a04ed11340024d814612b912c3c.zip
u-boot-imx-2b758cad8dfe8a04ed11340024d814612b912c3c.tar.gz
u-boot-imx-2b758cad8dfe8a04ed11340024d814612b912c3c.tar.bz2
m68k: net: Fix unused variable in mcfmii.c
The following warning was produced, fix it: mcfmii.c: In function 'mcffec_miiphy_write': mcfmii.c:318:8: warning: variable 'rdreg' set but not used [-Wunused-but-set-variable] Signed-off-by: Marek Vasut <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
Diffstat (limited to 'drivers/net/mcfmii.c')
-rw-r--r--drivers/net/mcfmii.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c
index 471c5ef..5e64dbd 100644
--- a/drivers/net/mcfmii.c
+++ b/drivers/net/mcfmii.c
@@ -315,13 +315,11 @@ int mcffec_miiphy_read(const char *devname, unsigned char addr, unsigned char re
int mcffec_miiphy_write(const char *devname, unsigned char addr, unsigned char reg,
unsigned short value)
{
- short rdreg; /* register working value */
-
#ifdef MII_DEBUG
printf("miiphy_write(0x%x) @ 0x%x = ", reg, addr);
#endif
- rdreg = mii_send(mk_mii_write(addr, reg, value));
+ mii_send(mk_mii_write(addr, reg, value));
#ifdef MII_DEBUG
printf("0x%04x\n", value);