diff options
author | Joe Perches <joe@perches.com> | 2010-07-12 13:50:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 14:43:51 -0700 |
commit | ba952d84e1d45df80e125d4abc64f3b778ae6dd7 (patch) | |
tree | 38414036ccd832df3cdf200f97292190c7d45581 /drivers/staging/batman-adv | |
parent | f69b0d6451679f1466381a46ac7ab671a7b5668c (diff) | |
download | linux-stable-ba952d84e1d45df80e125d4abc64f3b778ae6dd7.tar.gz linux-stable-ba952d84e1d45df80e125d4abc64f3b778ae6dd7.tar.bz2 linux-stable-ba952d84e1d45df80e125d4abc64f3b778ae6dd7.zip |
Staging: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv')
-rw-r--r-- | drivers/staging/batman-adv/bat_debugfs.c | 4 | ||||
-rw-r--r-- | drivers/staging/batman-adv/icmp_socket.c | 12 |
2 files changed, 6 insertions, 10 deletions
diff --git a/drivers/staging/batman-adv/bat_debugfs.c b/drivers/staging/batman-adv/bat_debugfs.c index 8e8eef0e588e..507da68054c7 100644 --- a/drivers/staging/batman-adv/bat_debugfs.c +++ b/drivers/staging/batman-adv/bat_debugfs.c @@ -104,7 +104,7 @@ static int log_release(struct inode *inode, struct file *file) static ssize_t log_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - struct bat_priv *bat_priv = (struct bat_priv *)file->private_data; + struct bat_priv *bat_priv = file->private_data; struct debug_log *debug_log = bat_priv->debug_log; int error, i = 0; char c; @@ -158,7 +158,7 @@ static ssize_t log_read(struct file *file, char __user *buf, static unsigned int log_poll(struct file *file, poll_table *wait) { - struct bat_priv *bat_priv = (struct bat_priv *)file->private_data; + struct bat_priv *bat_priv = file->private_data; struct debug_log *debug_log = bat_priv->debug_log; poll_wait(file, &debug_log->queue_wait, wait); diff --git a/drivers/staging/batman-adv/icmp_socket.c b/drivers/staging/batman-adv/icmp_socket.c index 532f246de43d..fc3d32c12729 100644 --- a/drivers/staging/batman-adv/icmp_socket.c +++ b/drivers/staging/batman-adv/icmp_socket.c @@ -78,8 +78,7 @@ static int bat_socket_open(struct inode *inode, struct file *file) static int bat_socket_release(struct inode *inode, struct file *file) { - struct socket_client *socket_client = - (struct socket_client *)file->private_data; + struct socket_client *socket_client = file->private_data; struct socket_packet *socket_packet; struct list_head *list_pos, *list_pos_tmp; unsigned long flags; @@ -107,8 +106,7 @@ static int bat_socket_release(struct inode *inode, struct file *file) static ssize_t bat_socket_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - struct socket_client *socket_client = - (struct socket_client *)file->private_data; + struct socket_client *socket_client = file->private_data; struct socket_packet *socket_packet; size_t packet_len; int error; @@ -155,8 +153,7 @@ static ssize_t bat_socket_write(struct file *file, const char __user *buff, { /* FIXME: each orig_node->batman_if will be attached to a softif */ struct bat_priv *bat_priv = netdev_priv(soft_device); - struct socket_client *socket_client = - (struct socket_client *)file->private_data; + struct socket_client *socket_client = file->private_data; struct icmp_packet_rr icmp_packet; struct orig_node *orig_node; struct batman_if *batman_if; @@ -247,8 +244,7 @@ out: static unsigned int bat_socket_poll(struct file *file, poll_table *wait) { - struct socket_client *socket_client = - (struct socket_client *)file->private_data; + struct socket_client *socket_client = file->private_data; poll_wait(file, &socket_client->queue_wait, wait); |