Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61a564fd authored by Jesper Juhl's avatar Jesper Juhl Committed by Paul Mackerras
Browse files

[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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent e6b6e3ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;