OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b16fed0
)
drivers/net/usb: Remove unnecessary casts of netdev_priv
author
Joe Perches
<joe@perches.com>
Mon, 15 Nov 2010 11:12:29 +0000
(11:12 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 17 Nov 2010 18:36:52 +0000
(10:36 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/pegasus.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/pegasus.c
b/drivers/net/usb/pegasus.c
index
6710f09
..
ef36676
100644
(file)
--- 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);
}