Skip to content

Commit

Permalink
drivers/net/caif: 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 54cbb1c commit cb8b6a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/caif/caif_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cb8b6a9

Please sign in to comment.