Commit 54cbb1ca authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

drivers/isdn: Remove unnecessary casts of private_data

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 06df277a
...@@ -691,7 +691,7 @@ static void capi_recv_message(struct capi20_appl *ap, struct sk_buff *skb) ...@@ -691,7 +691,7 @@ static void capi_recv_message(struct capi20_appl *ap, struct sk_buff *skb)
static ssize_t static ssize_t
capi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) capi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
{ {
struct capidev *cdev = (struct capidev *)file->private_data; struct capidev *cdev = file->private_data;
struct sk_buff *skb; struct sk_buff *skb;
size_t copied; size_t copied;
int err; int err;
...@@ -726,7 +726,7 @@ capi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) ...@@ -726,7 +726,7 @@ capi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
static ssize_t static ssize_t
capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
{ {
struct capidev *cdev = (struct capidev *)file->private_data; struct capidev *cdev = file->private_data;
struct sk_buff *skb; struct sk_buff *skb;
u16 mlen; u16 mlen;
...@@ -773,7 +773,7 @@ capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos ...@@ -773,7 +773,7 @@ capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos
static unsigned int static unsigned int
capi_poll(struct file *file, poll_table * wait) capi_poll(struct file *file, poll_table * wait)
{ {
struct capidev *cdev = (struct capidev *)file->private_data; struct capidev *cdev = file->private_data;
unsigned int mask = 0; unsigned int mask = 0;
if (!cdev->ap.applid) if (!cdev->ap.applid)
......
...@@ -158,7 +158,7 @@ hysdn_log_write(struct file *file, const char __user *buf, size_t count, loff_t ...@@ -158,7 +158,7 @@ hysdn_log_write(struct file *file, const char __user *buf, size_t count, loff_t
int found = 0; int found = 0;
unsigned char *cp, valbuf[128]; unsigned char *cp, valbuf[128];
long base = 10; long base = 10;
hysdn_card *card = (hysdn_card *) file->private_data; hysdn_card *card = file->private_data;
if (count > (sizeof(valbuf) - 1)) if (count > (sizeof(valbuf) - 1))
count = sizeof(valbuf) - 1; /* limit length */ count = sizeof(valbuf) - 1; /* limit length */
......
...@@ -477,7 +477,7 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg) ...@@ -477,7 +477,7 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg)
struct isdn_ppp_comp_data data; struct isdn_ppp_comp_data data;
void __user *argp = (void __user *)arg; void __user *argp = (void __user *)arg;
is = (struct ippp_struct *) file->private_data; is = file->private_data;
lp = is->lp; lp = is->lp;
if (is->debug & 0x1) if (is->debug & 0x1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment