Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=61a564fd2e7ab13ab11a6ce8305433baacf344ef
Commit:     61a564fd2e7ab13ab11a6ce8305433baacf344ef
Parent:     e6b6e3ffb9ee8926f9f2f7dc9147df73e27d5828
Author:     Jesper Juhl <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 24 09:45:08 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Sep 19 14:40:54 2007 +1000

    [POWERPC] Don't cast kmalloc return value in ibmebus.c
    
    kmalloc() returns a void pointer so there is absolutely no need to
    cast it in ibmebus_chomp().
    
    Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/ibmebus.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c
index d6a38cd..7697d5b 100644
--- a/arch/powerpc/kernel/ibmebus.c
+++ b/arch/powerpc/kernel/ibmebus.c
@@ -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;
 
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to