Skip to content

Commit

Permalink
tg3: remove extra casting
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Francois Romieu authored and David S. Miller committed Jan 21, 2009
1 parent a9d8f91 commit 3d16543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
struct tg3 *tp = (struct tg3 *)bp->priv;
struct tg3 *tp = bp->priv;
u32 val;

if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED)
Expand All @@ -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)
{
struct tg3 *tp = (struct tg3 *)bp->priv;
struct tg3 *tp = bp->priv;

if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED)
return -EAGAIN;
Expand Down

0 comments on commit 3d16543

Please sign in to comment.