mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
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>
This commit is contained in:
parent
54cbb1cab8
commit
cb8b6a9377
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue