forked from Minki/linux
[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 <jesper.juhl@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
e6b6e3ffb9
commit
61a564fd2e
@ -371,7 +371,8 @@ static int ibmebus_match_path(struct device *dev, void *data)
|
|||||||
|
|
||||||
static char *ibmebus_chomp(const char *in, size_t count)
|
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)
|
if (!out)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user