From: Joe Perches Date: Mon, 15 Nov 2010 11:12:29 +0000 (+0000) Subject: drivers/net/usb: Remove unnecessary casts of netdev_priv X-Git-Tag: firefly_0821_release~7613^2~3122^2~541 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8739cfef1ab8bc02e1bf38c02399afe62f3a7800;p=firefly-linux-kernel-4.4.55.git drivers/net/usb: Remove unnecessary casts of netdev_priv Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 6710f09346d6..ef3667690b12 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c @@ -359,7 +359,7 @@ fail: 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); @@ -397,7 +397,7 @@ fail: 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); }