diff options
author | Francois Romieu <romieu@fr.zoreil.com> | 2009-01-20 01:56:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 23:34:31 +0100 |
commit | 3d16543d3235fefca351c10b30c1cca6536f2569 (patch) | |
tree | 6eb988c962abaca63dca0ffd74cd5a84b69d83ba /drivers/net/tg3.c | |
parent | inet: Allowing more than 64k connections and heavily optimize bind(0) time. (diff) | |
download | linux-3d16543d3235fefca351c10b30c1cca6536f2569.tar.xz linux-3d16543d3235fefca351c10b30c1cca6536f2569.zip |
tg3: remove extra casting
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 5fa65acb68e5..5b3d60568d55 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -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) @@ -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; |