Commit:     b84d2bf07ffb962733ba56307c61539a301a742e
Parent:     092a212e8e3eb49ab7360d652f457d0a360d5383
Author:     Jesper Juhl <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 24 02:35:14 2007 +0200
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:55:21 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/serial/oti6858.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c
index 64f3f66..d198611 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 
        if (size == 0)
                return NULL;
-       pb = (struct pl2303_buf *)kmalloc(sizeof(struct pl2303_buf), 
+       pb = kmalloc(sizeof(struct pl2303_buf), GFP_KERNEL);
        if (pb == NULL)
                return NULL;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to