usb: avoid redundant cast of kmalloc() return value in OTi-6858 driver
[cascardo/linux.git] / drivers / usb / serial / oti6858.c
index 64f3f66..d198611 100644 (file)
@@ -1144,7 +1144,7 @@ static struct pl2303_buf *pl2303_buf_alloc(unsigned int size)
        if (size == 0)
                return NULL;
 
-       pb = (struct pl2303_buf *)kmalloc(sizeof(struct pl2303_buf), GFP_KERNEL);
+       pb = kmalloc(sizeof(struct pl2303_buf), GFP_KERNEL);
        if (pb == NULL)
                return NULL;