Staging: Drop memory allocation cast
[safe/jmp/linux-2.6] / drivers / staging / cx25821 / cx25821-video-upstream-ch2.c
index cc51618..343df66 100644 (file)
@@ -769,8 +769,7 @@ int cx25821_vidupstream_init_ch2(struct cx25821_dev *dev, int channel_select,
 
        if (dev->input_filename_ch2) {
                str_length = strlen(dev->input_filename_ch2);
-               dev->_filename_ch2 =
-                   (char *)kmalloc(str_length + 1, GFP_KERNEL);
+               dev->_filename_ch2 = kmalloc(str_length + 1, GFP_KERNEL);
 
                if (!dev->_filename_ch2)
                        goto error;
@@ -779,8 +778,7 @@ int cx25821_vidupstream_init_ch2(struct cx25821_dev *dev, int channel_select,
                       str_length + 1);
        } else {
                str_length = strlen(dev->_defaultname_ch2);
-               dev->_filename_ch2 =
-                   (char *)kmalloc(str_length + 1, GFP_KERNEL);
+               dev->_filename_ch2 = kmalloc(str_length + 1, GFP_KERNEL);
 
                if (!dev->_filename_ch2)
                        goto error;