aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/caif/caif_spi.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-12 06:50:05 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-13 00:13:35 -0400
commitcb8b6a937712cc6c4a23766ddb74171bb19b528c (patch)
tree37caf70b6dcf89e8fda4188bef9a827c39d7a5cb /drivers/net/caif/caif_spi.c
parent54cbb1cab88ef20c284eef8c24a6d86fad989464 (diff)
drivers/net/caif: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/caif/caif_spi.c')
-rw-r--r--drivers/net/caif/caif_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/caif/caif_spi.c b/drivers/net/caif/caif_spi.c
index 03049e86e8ae..6c948037fc78 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,
134 char *buf; 134 char *buf;
135 int len = 0; 135 int len = 0;
136 ssize_t size; 136 ssize_t size;
137 struct cfspi *cfspi = (struct cfspi *)file->private_data; 137 struct cfspi *cfspi = file->private_data;
138 138
139 buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL); 139 buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL);
140 if (!buf) 140 if (!buf)
@@ -205,7 +205,7 @@ static ssize_t dbgfs_frame(struct file *file, char __user *user_buf,
205 ssize_t size; 205 ssize_t size;
206 struct cfspi *cfspi; 206 struct cfspi *cfspi;
207 207
208 cfspi = (struct cfspi *)file->private_data; 208 cfspi = file->private_data;
209 buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL); 209 buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL);
210 if (!buf) 210 if (!buf)
211 return 0; 211 return 0;