Skip to content

Commit

Permalink
net/irda: Remove unnecessary casts of private_data
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Jul 13, 2010
1 parent 8a994a7 commit 55a40e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions net/irda/irnet/irnet_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ static int
dev_irnet_close(struct inode * inode,
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",
file, ap);
Expand Down Expand Up @@ -564,7 +564,7 @@ dev_irnet_write(struct file * file,
size_t count,
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",
file, ap, count);
Expand All @@ -588,7 +588,7 @@ dev_irnet_read(struct file * file,
size_t count,
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",
file, ap, count);
Expand All @@ -609,7 +609,7 @@ static unsigned int
dev_irnet_poll(struct file * file,
poll_table * wait)
{
irnet_socket * ap = (struct irnet_socket *) file->private_data;
irnet_socket * ap = file->private_data;
unsigned int mask;

DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n",
Expand Down Expand Up @@ -638,7 +638,7 @@ dev_irnet_ioctl(
unsigned int cmd,
unsigned long arg)
{
irnet_socket * ap = (struct irnet_socket *) file->private_data;
irnet_socket * ap = file->private_data;
int err;
int val;
void __user *argp = (void __user *)arg;
Expand Down

0 comments on commit 55a40e2

Please sign in to comment.