Commit 3d16543d authored by Francois Romieu's avatar Francois Romieu Committed by David S. Miller

tg3: remove extra casting

Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a9d8f911
...@@ -860,7 +860,7 @@ static int tg3_bmcr_reset(struct tg3 *tp) ...@@ -860,7 +860,7 @@ static int tg3_bmcr_reset(struct tg3 *tp)
static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg) static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg)
{ {
struct tg3 *tp = (struct tg3 *)bp->priv; struct tg3 *tp = bp->priv;
u32 val; u32 val;
if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED) if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED)
...@@ -874,7 +874,7 @@ static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg) ...@@ -874,7 +874,7 @@ static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg)
static int tg3_mdio_write(struct mii_bus *bp, int mii_id, int reg, u16 val) static int tg3_mdio_write(struct mii_bus *bp, int mii_id, int reg, u16 val)
{ {
struct tg3 *tp = (struct tg3 *)bp->priv; struct tg3 *tp = bp->priv;
if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED) if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED)
return -EAGAIN; return -EAGAIN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment