projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6b6e3f
)
[POWERPC] Don't cast kmalloc return value in ibmebus.c
author
Jesper Juhl
<jesper.juhl@gmail.com>
Thu, 23 Aug 2007 23:45:08 +0000
(09:45 +1000)
committer
Paul 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/ibmebus.c
b/arch/powerpc/kernel/ibmebus.c
index d6a38cd5018e11654efb2d046685da0cce3b8032..7697d5b8296e5c51a4eb86bc1f9319eeefdcd50d 100644
(file)
--- 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;