aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/i4l/isdn_ppp.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-15 06:12:24 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-17 13:36:50 -0500
commita17531fa4c951f32ca4f90b04ca42cfb11924098 (patch)
treedaf04e65a0713a726c1feba9e9065b323e455fc3 /drivers/isdn/i4l/isdn_ppp.c
parenta1082bfe7d2d88d9626f5542dda9c0781394e91f (diff)
drivers/isdn/i4l: Remove unnecessary casts of netdev_priv
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/i4l/isdn_ppp.c')
-rw-r--r--drivers/isdn/i4l/isdn_ppp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c
index fe824e0cbb25..97c5cc2997f5 100644
--- a/drivers/isdn/i4l/isdn_ppp.c
+++ b/drivers/isdn/i4l/isdn_ppp.c
@@ -1221,7 +1221,7 @@ isdn_ppp_xmit(struct sk_buff *skb, struct net_device *netdev)
1221 struct ippp_struct *ipt,*ipts; 1221 struct ippp_struct *ipt,*ipts;
1222 int slot, retval = NETDEV_TX_OK; 1222 int slot, retval = NETDEV_TX_OK;
1223 1223
1224 mlp = (isdn_net_local *) netdev_priv(netdev); 1224 mlp = netdev_priv(netdev);
1225 nd = mlp->netdev; /* get master lp */ 1225 nd = mlp->netdev; /* get master lp */
1226 1226
1227 slot = mlp->ppp_slot; 1227 slot = mlp->ppp_slot;
@@ -1985,7 +1985,7 @@ isdn_ppp_dev_ioctl_stats(int slot, struct ifreq *ifr, struct net_device *dev)
1985{ 1985{
1986 struct ppp_stats __user *res = ifr->ifr_data; 1986 struct ppp_stats __user *res = ifr->ifr_data;
1987 struct ppp_stats t; 1987 struct ppp_stats t;
1988 isdn_net_local *lp = (isdn_net_local *) netdev_priv(dev); 1988 isdn_net_local *lp = netdev_priv(dev);
1989 1989
1990 if (!access_ok(VERIFY_WRITE, res, sizeof(struct ppp_stats))) 1990 if (!access_ok(VERIFY_WRITE, res, sizeof(struct ppp_stats)))
1991 return -EFAULT; 1991 return -EFAULT;
@@ -2024,7 +2024,7 @@ isdn_ppp_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
2024{ 2024{
2025 int error=0; 2025 int error=0;
2026 int len; 2026 int len;
2027 isdn_net_local *lp = (isdn_net_local *) netdev_priv(dev); 2027 isdn_net_local *lp = netdev_priv(dev);
2028 2028
2029 2029
2030 if (lp->p_encap != ISDN_NET_ENCAP_SYNCPPP) 2030 if (lp->p_encap != ISDN_NET_ENCAP_SYNCPPP)
@@ -2091,7 +2091,7 @@ isdn_ppp_dial_slave(char *name)
2091 2091
2092 sdev = lp->slave; 2092 sdev = lp->slave;
2093 while (sdev) { 2093 while (sdev) {
2094 isdn_net_local *mlp = (isdn_net_local *) netdev_priv(sdev); 2094 isdn_net_local *mlp = netdev_priv(sdev);
2095 if (!(mlp->flags & ISDN_NET_CONNECTED)) 2095 if (!(mlp->flags & ISDN_NET_CONNECTED))
2096 break; 2096 break;
2097 sdev = mlp->slave; 2097 sdev = mlp->slave;
@@ -2099,7 +2099,7 @@ isdn_ppp_dial_slave(char *name)
2099 if (!sdev) 2099 if (!sdev)
2100 return 2; 2100 return 2;
2101 2101
2102 isdn_net_dial_req((isdn_net_local *) netdev_priv(sdev)); 2102 isdn_net_dial_req(netdev_priv(sdev));
2103 return 0; 2103 return 0;
2104#else 2104#else
2105 return -1; 2105 return -1;
@@ -2122,7 +2122,7 @@ isdn_ppp_hangup_slave(char *name)
2122 2122
2123 sdev = lp->slave; 2123 sdev = lp->slave;
2124 while (sdev) { 2124 while (sdev) {
2125 isdn_net_local *mlp = (isdn_net_local *) netdev_priv(sdev); 2125 isdn_net_local *mlp = netdev_priv(sdev);
2126 2126
2127 if (mlp->slave) { /* find last connected link in chain */ 2127 if (mlp->slave) { /* find last connected link in chain */
2128 isdn_net_local *nlp = ISDN_SLAVE_PRIV(mlp); 2128 isdn_net_local *nlp = ISDN_SLAVE_PRIV(mlp);