]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/easycap/easycap_main.c
Staging: Remove unnecessary casts of private_data
[net-next-2.6.git] / drivers / staging / easycap / easycap_main.c
index f7a65afb6cd8889cd040eb9172add2ac3f855689..09c194ce10a398b785fa03736e92f4aaaee8dadb 100644 (file)
@@ -527,7 +527,7 @@ struct easycap *peasycap;
 
 JOT(4, "\n");
 
-peasycap = (struct easycap *)file->private_data;
+peasycap = file->private_data;
 if (NULL == peasycap) {
        SAY("ERROR:  peasycap is NULL.\n");
        SAY("ending unsuccessfully\n");
@@ -819,7 +819,7 @@ if (NULL == ((struct file *)file)) {
        SAY("ERROR:  file pointer is NULL\n");
        return -EFAULT;
 }
-peasycap = (struct easycap *)file->private_data;
+peasycap = file->private_data;
 if (NULL == peasycap) {
        SAY("ERROR:  peasycap is NULL\n");
        return -EFAULT;