* [PATCH 10/36] drivers/isdn: Remove unnecessary casts of private_data [not found] <cover.1278967120.git.joe@perches.com> @ 2010-07-12 20:50 ` Joe Perches 2010-07-13 4:13 ` David Miller 2010-07-12 20:50 ` [PATCH 13/36] drivers/net/caif: " Joe Perches ` (4 subsequent siblings) 5 siblings, 1 reply; 10+ messages in thread From: Joe Perches @ 2010-07-12 20:50 UTC (permalink / raw) To: Jiri Kosina; +Cc: linux-kernel, Karsten Keil, netdev Signed-off-by: Joe Perches <joe@perches.com> --- drivers/isdn/capi/capi.c | 6 +++--- drivers/isdn/hysdn/hysdn_proclog.c | 2 +- drivers/isdn/i4l/isdn_ppp.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index 0cabe31..c2d4ba4 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c @@ -691,7 +691,7 @@ unlock_out: static ssize_t 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; size_t copied; int err; @@ -726,7 +726,7 @@ capi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) static ssize_t 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; u16 mlen; @@ -773,7 +773,7 @@ capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos static unsigned int 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; if (!cdev->ap.applid) diff --git a/drivers/isdn/hysdn/hysdn_proclog.c b/drivers/isdn/hysdn/hysdn_proclog.c index e83f6fd..c58a72d 100644 --- a/drivers/isdn/hysdn/hysdn_proclog.c +++ b/drivers/isdn/hysdn/hysdn_proclog.c @@ -157,7 +157,7 @@ hysdn_log_write(struct file *file, const char __user *buf, size_t count, loff_t int found = 0; unsigned char *cp, valbuf[128]; long base = 10; - hysdn_card *card = (hysdn_card *) file->private_data; + hysdn_card *card = file->private_data; if (count > (sizeof(valbuf) - 1)) count = sizeof(valbuf) - 1; /* limit length */ diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c index 8c46bae..fe824e0 100644 --- a/drivers/isdn/i4l/isdn_ppp.c +++ b/drivers/isdn/i4l/isdn_ppp.c @@ -477,7 +477,7 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg) struct isdn_ppp_comp_data data; void __user *argp = (void __user *)arg; - is = (struct ippp_struct *) file->private_data; + is = file->private_data; lp = is->lp; if (is->debug & 0x1) -- 1.7.1.337.g6068.dirty ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 10/36] drivers/isdn: Remove unnecessary casts of private_data 2010-07-12 20:50 ` [PATCH 10/36] drivers/isdn: Remove unnecessary casts of private_data Joe Perches @ 2010-07-13 4:13 ` David Miller 0 siblings, 0 replies; 10+ messages in thread From: David Miller @ 2010-07-13 4:13 UTC (permalink / raw) To: joe; +Cc: trivial, linux-kernel, isdn, netdev From: Joe Perches <joe@perches.com> Date: Mon, 12 Jul 2010 13:50:02 -0700 > Signed-off-by: Joe Perches <joe@perches.com> Applied. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 13/36] drivers/net/caif: Remove unnecessary casts of private_data [not found] <cover.1278967120.git.joe@perches.com> 2010-07-12 20:50 ` [PATCH 10/36] drivers/isdn: Remove unnecessary casts of private_data Joe Perches @ 2010-07-12 20:50 ` Joe Perches 2010-07-13 4:13 ` David Miller [not found] ` <cover.1278967120.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org> ` (3 subsequent siblings) 5 siblings, 1 reply; 10+ messages in thread From: Joe Perches @ 2010-07-12 20:50 UTC (permalink / raw) To: Jiri Kosina; +Cc: linux-kernel, netdev Signed-off-by: Joe Perches <joe@perches.com> --- drivers/net/caif/caif_spi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/caif/caif_spi.c b/drivers/net/caif/caif_spi.c index 03049e8..6c94803 100644 --- a/drivers/net/caif/caif_spi.c +++ b/drivers/net/caif/caif_spi.c @@ -134,7 +134,7 @@ static ssize_t dbgfs_state(struct file *file, char __user *user_buf, char *buf; int len = 0; ssize_t size; - struct cfspi *cfspi = (struct cfspi *)file->private_data; + struct cfspi *cfspi = file->private_data; buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL); if (!buf) @@ -205,7 +205,7 @@ static ssize_t dbgfs_frame(struct file *file, char __user *user_buf, ssize_t size; struct cfspi *cfspi; - cfspi = (struct cfspi *)file->private_data; + cfspi = file->private_data; buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL); if (!buf) return 0; -- 1.7.1.337.g6068.dirty ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 13/36] drivers/net/caif: Remove unnecessary casts of private_data 2010-07-12 20:50 ` [PATCH 13/36] drivers/net/caif: " Joe Perches @ 2010-07-13 4:13 ` David Miller 0 siblings, 0 replies; 10+ messages in thread From: David Miller @ 2010-07-13 4:13 UTC (permalink / raw) To: joe; +Cc: trivial, linux-kernel, netdev From: Joe Perches <joe@perches.com> Date: Mon, 12 Jul 2010 13:50:05 -0700 > Signed-off-by: Joe Perches <joe@perches.com> Applied. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <cover.1278967120.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>]
* [PATCH 14/36] drivers/net/wireless: Remove unnecessary casts of private_data [not found] ` <cover.1278967120.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org> @ 2010-07-12 20:50 ` Joe Perches 0 siblings, 0 replies; 10+ messages in thread From: Joe Perches @ 2010-07-12 20:50 UTC (permalink / raw) To: Jiri Kosina Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, John W. Linville, Luis R. Rodriguez, Jouni Malinen, Sujith Manoharan, Vasanthakumar Thiagarajan, Senthil Balasubramanian, Reinette Chatre, Wey-Yi Guy, Intel Linux Wireless, Dan Williams, linux-wireless-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, ath9k-devel-xDcbHBWguxHbcTqmT+pZeQ, libertas-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Signed-off-by: Joe Perches <joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org> --- drivers/net/wireless/airo.c | 22 +++++++++++----------- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 9 +++------ drivers/net/wireless/iwlwifi/iwl-debugfs.c | 10 +++++----- drivers/net/wireless/libertas/debugfs.c | 4 ++-- 4 files changed, 21 insertions(+), 24 deletions(-) diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 6b605df..115442b 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -4657,7 +4657,7 @@ static ssize_t proc_write( struct file *file, loff_t *offset ) { loff_t pos = *offset; - struct proc_data *priv = (struct proc_data*)file->private_data; + struct proc_data *priv = file->private_data; if (!priv->wbuffer) return -EINVAL; @@ -4689,7 +4689,7 @@ static int proc_status_open(struct inode *inode, struct file *file) if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) return -ENOMEM; - data = (struct proc_data *)file->private_data; + data = file->private_data; if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { kfree (file->private_data); return -ENOMEM; @@ -4772,7 +4772,7 @@ static int proc_stats_rid_open( struct inode *inode, if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) return -ENOMEM; - data = (struct proc_data *)file->private_data; + data = file->private_data; if ((data->rbuffer = kmalloc( 4096, GFP_KERNEL )) == NULL) { kfree (file->private_data); return -ENOMEM; @@ -5045,7 +5045,7 @@ static int proc_config_open(struct inode *inode, struct file *file) if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) return -ENOMEM; - data = (struct proc_data *)file->private_data; + data = file->private_data; if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { kfree (file->private_data); return -ENOMEM; @@ -5127,7 +5127,7 @@ static int proc_config_open(struct inode *inode, struct file *file) static void proc_SSID_on_close(struct inode *inode, struct file *file) { - struct proc_data *data = (struct proc_data *)file->private_data; + struct proc_data *data = file->private_data; struct proc_dir_entry *dp = PDE(inode); struct net_device *dev = dp->data; struct airo_info *ai = dev->ml_priv; @@ -5163,7 +5163,7 @@ static void proc_SSID_on_close(struct inode *inode, struct file *file) } static void proc_APList_on_close( struct inode *inode, struct file *file ) { - struct proc_data *data = (struct proc_data *)file->private_data; + struct proc_data *data = file->private_data; struct proc_dir_entry *dp = PDE(inode); struct net_device *dev = dp->data; struct airo_info *ai = dev->ml_priv; @@ -5309,7 +5309,7 @@ static void proc_wepkey_on_close( struct inode *inode, struct file *file ) { memset(key, 0, sizeof(key)); - data = (struct proc_data *)file->private_data; + data = file->private_data; if ( !data->writelen ) return; if (data->wbuffer[0] >= '0' && data->wbuffer[0] <= '3' && @@ -5363,7 +5363,7 @@ static int proc_wepkey_open( struct inode *inode, struct file *file ) if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) return -ENOMEM; memset(&wkr, 0, sizeof(wkr)); - data = (struct proc_data *)file->private_data; + data = file->private_data; if ((data->rbuffer = kzalloc( 180, GFP_KERNEL )) == NULL) { kfree (file->private_data); return -ENOMEM; @@ -5409,7 +5409,7 @@ static int proc_SSID_open(struct inode *inode, struct file *file) if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) return -ENOMEM; - data = (struct proc_data *)file->private_data; + data = file->private_data; if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { kfree (file->private_data); return -ENOMEM; @@ -5453,7 +5453,7 @@ static int proc_APList_open( struct inode *inode, struct file *file ) { if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) return -ENOMEM; - data = (struct proc_data *)file->private_data; + data = file->private_data; if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { kfree (file->private_data); return -ENOMEM; @@ -5495,7 +5495,7 @@ static int proc_BSSList_open( struct inode *inode, struct file *file ) { if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) return -ENOMEM; - data = (struct proc_data *)file->private_data; + data = file->private_data; if ((data->rbuffer = kmalloc( 1024, GFP_KERNEL )) == NULL) { kfree (file->private_data); return -ENOMEM; diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index e38ca66..47f7603 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c @@ -492,8 +492,7 @@ static int ath9k_debugfs_open(struct inode *inode, struct file *file) static ssize_t read_file_tgt_stats(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct ath9k_htc_priv *priv = - (struct ath9k_htc_priv *) file->private_data; + struct ath9k_htc_priv *priv = file->private_data; struct ath9k_htc_target_stats cmd_rsp; char buf[512]; unsigned int len = 0; @@ -536,8 +535,7 @@ static const struct file_operations fops_tgt_stats = { static ssize_t read_file_xmit(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct ath9k_htc_priv *priv = - (struct ath9k_htc_priv *) file->private_data; + struct ath9k_htc_priv *priv = file->private_data; char buf[512]; unsigned int len = 0; @@ -582,8 +580,7 @@ static const struct file_operations fops_xmit = { static ssize_t read_file_recv(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct ath9k_htc_priv *priv = - (struct ath9k_htc_priv *) file->private_data; + struct ath9k_htc_priv *priv = file->private_data; char buf[512]; unsigned int len = 0; diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 088a2c1..7b25d14 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c @@ -1267,7 +1267,7 @@ static ssize_t iwl_dbgfs_ucode_tracing_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct iwl_priv *priv = (struct iwl_priv *)file->private_data; + struct iwl_priv *priv = file->private_data; int pos = 0; char buf[128]; const size_t bufsz = sizeof(buf); @@ -1317,7 +1317,7 @@ static ssize_t iwl_dbgfs_rxon_flags_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct iwl_priv *priv = (struct iwl_priv *)file->private_data; + struct iwl_priv *priv = file->private_data; int len = 0; char buf[20]; @@ -1329,7 +1329,7 @@ static ssize_t iwl_dbgfs_rxon_filter_flags_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct iwl_priv *priv = (struct iwl_priv *)file->private_data; + struct iwl_priv *priv = file->private_data; int len = 0; char buf[20]; @@ -1342,7 +1342,7 @@ static ssize_t iwl_dbgfs_fh_reg_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct iwl_priv *priv = (struct iwl_priv *)file->private_data; + struct iwl_priv *priv = file->private_data; char *buf; int pos = 0; ssize_t ret = -EFAULT; @@ -1404,7 +1404,7 @@ static ssize_t iwl_dbgfs_plcp_delta_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { - struct iwl_priv *priv = (struct iwl_priv *)file->private_data; + struct iwl_priv *priv = file->private_data; int pos = 0; char buf[12]; const size_t bufsz = sizeof(buf); diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 1736746..667695b 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -839,7 +839,7 @@ static ssize_t lbs_debugfs_read(struct file *file, char __user *userbuf, p = buf; - d = (struct debug_data *)file->private_data; + d = file->private_data; for (i = 0; i < num_of_items; i++) { if (d[i].size == 1) @@ -878,7 +878,7 @@ static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, char *p0; char *p1; char *p2; - struct debug_data *d = (struct debug_data *)f->private_data; + struct debug_data *d = f->private_data; pdata = kmalloc(cnt, GFP_KERNEL); if (pdata == NULL) -- 1.7.1.337.g6068.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 31/36] net/core: Remove unnecessary casts of private_data [not found] <cover.1278967120.git.joe@perches.com> ` (2 preceding siblings ...) [not found] ` <cover.1278967120.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org> @ 2010-07-12 20:50 ` Joe Perches 2010-07-13 4:14 ` David Miller 2010-07-12 20:50 ` [PATCH 32/36] net/irda: " Joe Perches 2010-07-12 20:50 ` [PATCH 33/36] net/sunrpc: " Joe Perches 5 siblings, 1 reply; 10+ messages in thread From: Joe Perches @ 2010-07-12 20:50 UTC (permalink / raw) To: Jiri Kosina; +Cc: linux-kernel, David S. Miller, netdev Signed-off-by: Joe Perches <joe@perches.com> --- net/core/pktgen.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 1ee2ebd..24a19de 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -846,7 +846,7 @@ static ssize_t pktgen_if_write(struct file *file, const char __user * user_buffer, size_t count, loff_t * offset) { - struct seq_file *seq = (struct seq_file *)file->private_data; + struct seq_file *seq = file->private_data; struct pktgen_dev *pkt_dev = seq->private; int i = 0, max, len; char name[16], valstr[32]; @@ -1776,7 +1776,7 @@ static ssize_t pktgen_thread_write(struct file *file, const char __user * user_buffer, size_t count, loff_t * offset) { - struct seq_file *seq = (struct seq_file *)file->private_data; + struct seq_file *seq = file->private_data; struct pktgen_thread *t = seq->private; int i = 0, max, len, ret; char name[40]; -- 1.7.1.337.g6068.dirty ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 31/36] net/core: Remove unnecessary casts of private_data 2010-07-12 20:50 ` [PATCH 31/36] net/core: " Joe Perches @ 2010-07-13 4:14 ` David Miller 0 siblings, 0 replies; 10+ messages in thread From: David Miller @ 2010-07-13 4:14 UTC (permalink / raw) To: joe; +Cc: trivial, linux-kernel, netdev From: Joe Perches <joe@perches.com> Date: Mon, 12 Jul 2010 13:50:23 -0700 > Signed-off-by: Joe Perches <joe@perches.com> Applied. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 32/36] net/irda: Remove unnecessary casts of private_data [not found] <cover.1278967120.git.joe@perches.com> ` (3 preceding siblings ...) 2010-07-12 20:50 ` [PATCH 31/36] net/core: " Joe Perches @ 2010-07-12 20:50 ` Joe Perches 2010-07-13 4:14 ` David Miller 2010-07-12 20:50 ` [PATCH 33/36] net/sunrpc: " Joe Perches 5 siblings, 1 reply; 10+ messages in thread From: Joe Perches @ 2010-07-12 20:50 UTC (permalink / raw) To: Jiri Kosina; +Cc: linux-kernel, Samuel Ortiz, David S. Miller, netdev Signed-off-by: Joe Perches <joe@perches.com> --- net/irda/irnet/irnet_ppp.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c index 6a1a202..800bc53 100644 --- a/net/irda/irnet/irnet_ppp.c +++ b/net/irda/irnet/irnet_ppp.c @@ -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); @@ -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); @@ -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); @@ -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", @@ -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; -- 1.7.1.337.g6068.dirty ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 32/36] net/irda: Remove unnecessary casts of private_data 2010-07-12 20:50 ` [PATCH 32/36] net/irda: " Joe Perches @ 2010-07-13 4:14 ` David Miller 0 siblings, 0 replies; 10+ messages in thread From: David Miller @ 2010-07-13 4:14 UTC (permalink / raw) To: joe; +Cc: trivial, linux-kernel, samuel, netdev From: Joe Perches <joe@perches.com> Date: Mon, 12 Jul 2010 13:50:24 -0700 > Signed-off-by: Joe Perches <joe@perches.com> Applied. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 33/36] net/sunrpc: Remove unnecessary casts of private_data [not found] <cover.1278967120.git.joe@perches.com> ` (4 preceding siblings ...) 2010-07-12 20:50 ` [PATCH 32/36] net/irda: " Joe Perches @ 2010-07-12 20:50 ` Joe Perches 5 siblings, 0 replies; 10+ messages in thread From: Joe Perches @ 2010-07-12 20:50 UTC (permalink / raw) To: Jiri Kosina Cc: linux-kernel, Trond Myklebust, J. Bruce Fields, Neil Brown, David S. Miller, linux-nfs, netdev Signed-off-by: Joe Perches <joe@perches.com> --- net/sunrpc/rpc_pipe.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 95ccbcf..1f7fc50 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -204,7 +204,7 @@ rpc_pipe_release(struct inode *inode, struct file *filp) mutex_lock(&inode->i_mutex); if (rpci->ops == NULL) goto out; - msg = (struct rpc_pipe_msg *)filp->private_data; + msg = filp->private_data; if (msg != NULL) { spin_lock(&inode->i_lock); msg->errno = -EAGAIN; @@ -322,7 +322,7 @@ rpc_pipe_ioctl_unlocked(struct file *filp, unsigned int cmd, unsigned long arg) len = rpci->pipelen; if (filp->private_data) { struct rpc_pipe_msg *msg; - msg = (struct rpc_pipe_msg *)filp->private_data; + msg = filp->private_data; len += msg->len - msg->copied; } return put_user(len, (int __user *)arg); -- 1.7.1.337.g6068.dirty ^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-07-13 4:13 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <cover.1278967120.git.joe@perches.com> 2010-07-12 20:50 ` [PATCH 10/36] drivers/isdn: Remove unnecessary casts of private_data Joe Perches 2010-07-13 4:13 ` David Miller 2010-07-12 20:50 ` [PATCH 13/36] drivers/net/caif: " Joe Perches 2010-07-13 4:13 ` David Miller [not found] ` <cover.1278967120.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org> 2010-07-12 20:50 ` [PATCH 14/36] drivers/net/wireless: " Joe Perches 2010-07-12 20:50 ` [PATCH 31/36] net/core: " Joe Perches 2010-07-13 4:14 ` David Miller 2010-07-12 20:50 ` [PATCH 32/36] net/irda: " Joe Perches 2010-07-13 4:14 ` David Miller 2010-07-12 20:50 ` [PATCH 33/36] net/sunrpc: " Joe Perches
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).