提交 61a564fd 编写于 作者: J Jesper Juhl 提交者: Paul Mackerras

[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: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 e6b6e3ff
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册