Commit 55a40e24 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net/irda: 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 8a994a71
...@@ -527,7 +527,7 @@ static int ...@@ -527,7 +527,7 @@ static int
dev_irnet_close(struct inode * inode, dev_irnet_close(struct inode * inode,
struct file * file) struct file * file)
{ {
irnet_socket * ap = (struct irnet_socket *) file->private_data; irnet_socket * ap = file->private_data;
DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n", DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n",
file, ap); file, ap);
...@@ -564,7 +564,7 @@ dev_irnet_write(struct file * file, ...@@ -564,7 +564,7 @@ dev_irnet_write(struct file * file,
size_t count, size_t count,
loff_t * ppos) loff_t * ppos)
{ {
irnet_socket * ap = (struct irnet_socket *) file->private_data; irnet_socket * ap = file->private_data;
DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%Zd)\n", DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%Zd)\n",
file, ap, count); file, ap, count);
...@@ -588,7 +588,7 @@ dev_irnet_read(struct file * file, ...@@ -588,7 +588,7 @@ dev_irnet_read(struct file * file,
size_t count, size_t count,
loff_t * ppos) loff_t * ppos)
{ {
irnet_socket * ap = (struct irnet_socket *) file->private_data; irnet_socket * ap = file->private_data;
DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%Zd)\n", DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%Zd)\n",
file, ap, count); file, ap, count);
...@@ -609,7 +609,7 @@ static unsigned int ...@@ -609,7 +609,7 @@ static unsigned int
dev_irnet_poll(struct file * file, dev_irnet_poll(struct file * file,
poll_table * wait) poll_table * wait)
{ {
irnet_socket * ap = (struct irnet_socket *) file->private_data; irnet_socket * ap = file->private_data;
unsigned int mask; unsigned int mask;
DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n", DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n",
...@@ -638,7 +638,7 @@ dev_irnet_ioctl( ...@@ -638,7 +638,7 @@ dev_irnet_ioctl(
unsigned int cmd, unsigned int cmd,
unsigned long arg) unsigned long arg)
{ {
irnet_socket * ap = (struct irnet_socket *) file->private_data; irnet_socket * ap = file->private_data;
int err; int err;
int val; int val;
void __user *argp = (void __user *)arg; void __user *argp = (void __user *)arg;
......
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