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

Commit f447fd30 authored by Thomas Meyer's avatar Thomas Meyer Committed by Chris Zankel
Browse files

xtensa: Cocci spatch "noderef"



sizeof when applied to a pointer typed expression gives the size of the
pointer.
Found by coccinelle spatch "misc/noderef.cocci"

Signed-off-by: default avatarThomas Meyer <thomas@m3y3r.de>
Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent cba9a900
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -737,7 +737,8 @@ static int __init iss_net_setup(char *str)
		return 1;
	}

	if ((new = alloc_bootmem(sizeof new)) == NULL) {
	new = alloc_bootmem(sizeof(*new));
	if (new == NULL) {
		printk("Alloc_bootmem failed\n");
		return 1;
	}