[POWERPC] Don't cast kmalloc return value in ibmebus.c
authorJesper Juhl <jesper.juhl@gmail.com>
Thu, 23 Aug 2007 23:45:08 +0000 (09:45 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Sep 2007 04:40:54 +0000 (14:40 +1000)
kmalloc() returns a void pointer so there is absolutely no need to
cast it in ibmebus_chomp().

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ibmebus.c

index d6a38cd5018e11654efb2d046685da0cce3b8032..7697d5b8296e5c51a4eb86bc1f9319eeefdcd50d 100644 (file)
@@ -371,7 +371,8 @@ static int ibmebus_match_path(struct device *dev, void *data)
 
 static char *ibmebus_chomp(const char *in, size_t count)
 {
-       char *out = (char*)kmalloc(count + 1, GFP_KERNEL);
+       char *out = kmalloc(count + 1, GFP_KERNEL);
+
        if (!out)
                return NULL;