Skip to content
Snippets Groups Projects
Commit cb8b6a93 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

drivers/net/caif: Remove unnecessary casts of private_data

parent 54cbb1ca
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ static ssize_t dbgfs_state(struct file *file, char __user *user_buf, ...@@ -134,7 +134,7 @@ static ssize_t dbgfs_state(struct file *file, char __user *user_buf,
char *buf; char *buf;
int len = 0; int len = 0;
ssize_t size; ssize_t size;
struct cfspi *cfspi = (struct cfspi *)file->private_data; struct cfspi *cfspi = file->private_data;
buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL); buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL);
if (!buf) if (!buf)
...@@ -205,7 +205,7 @@ static ssize_t dbgfs_frame(struct file *file, char __user *user_buf, ...@@ -205,7 +205,7 @@ static ssize_t dbgfs_frame(struct file *file, char __user *user_buf,
ssize_t size; ssize_t size;
struct cfspi *cfspi; struct cfspi *cfspi;
cfspi = (struct cfspi *)file->private_data; cfspi = file->private_data;
buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL); buf = kzalloc(DEBUGFS_BUF_SIZE, GFP_KERNEL);
if (!buf) if (!buf)
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment