Skip to content

Commit

Permalink
drivers/net/usb: Remove unnecessary casts of netdev_priv
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 17, 2010
1 parent b16fed0 commit 8739cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/usb/pegasus.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ static int read_mii_word(pegasus_t *pegasus, __u8 phy, __u8 indx, __u16 *regd)

static int mdio_read(struct net_device *dev, int phy_id, int loc)
{
pegasus_t *pegasus = (pegasus_t *) netdev_priv(dev);
pegasus_t *pegasus = netdev_priv(dev);
u16 res;

read_mii_word(pegasus, phy_id, loc, &res);
Expand Down Expand Up @@ -397,7 +397,7 @@ static int write_mii_word(pegasus_t *pegasus, __u8 phy, __u8 indx, __u16 regd)

static void mdio_write(struct net_device *dev, int phy_id, int loc, int val)
{
pegasus_t *pegasus = (pegasus_t *) netdev_priv(dev);
pegasus_t *pegasus = netdev_priv(dev);

write_mii_word(pegasus, phy_id, loc, val);
}
Expand Down

0 comments on commit 8739cfe

Please sign in to comment.