aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r--drivers/net/wireless/libertas/debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c
index acaf81164624..3db621b18a2f 100644
--- a/drivers/net/wireless/libertas/debugfs.c
+++ b/drivers/net/wireless/libertas/debugfs.c
@@ -905,7 +905,7 @@ static ssize_t lbs_debugfs_read(struct file *file, char __user *userbuf,
905 905
906 p = buf; 906 p = buf;
907 907
908 d = (struct debug_data *)file->private_data; 908 d = file->private_data;
909 909
910 for (i = 0; i < num_of_items; i++) { 910 for (i = 0; i < num_of_items; i++) {
911 if (d[i].size == 1) 911 if (d[i].size == 1)
@@ -944,7 +944,7 @@ static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf,
944 char *p0; 944 char *p0;
945 char *p1; 945 char *p1;
946 char *p2; 946 char *p2;
947 struct debug_data *d = (struct debug_data *)f->private_data; 947 struct debug_data *d = f->private_data;
948 948
949 pdata = kmalloc(cnt, GFP_KERNEL); 949 pdata = kmalloc(cnt, GFP_KERNEL);
950 if (pdata == NULL) 950 if (pdata == NULL)