summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/oti6858.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-08-24 02:35:14 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 14:55:21 -0700
commitb84d2bf07ffb962733ba56307c61539a301a742e (patch)
treef328d4a0d4b9e67d8123163301701b1e78b2178f /drivers/usb/serial/oti6858.c
parent092a212e8e3eb49ab7360d652f457d0a360d5383 (diff)
downloadblackbird-obmc-linux-b84d2bf07ffb962733ba56307c61539a301a742e.tar.gz
blackbird-obmc-linux-b84d2bf07ffb962733ba56307c61539a301a742e.zip
usb: avoid redundant cast of kmalloc() return value in OTi-6858 driver
In drivers/usb/serial/oti6858.c::pl2303_buf_alloc() the return value of kmalloc() is being cast to "struct pl2303_buf *", but that need not be done here since kmalloc() returns "void *". Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/oti6858.c')
-rw-r--r--drivers/usb/serial/oti6858.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c
index 64f3f66a7a35..d19861166b50 100644
--- a/drivers/usb/serial/oti6858.c
+++ b/drivers/usb/serial/oti6858.c
@@ -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;
OpenPOWER on IntegriCloud