pinctrl: mvebu: testing the wrong variable
Subsystems (3)
PATCH 1/1 pinctrl: mvebu: testing the wrong variable
We wanted to test "*map" here instead of "map".
Signed-off-by Dan Carpenter <[email protected]>
drivers/pinctrl/mvebu/pinctrl-mvebu.c +1 -1
@@ -430,7 +430,7 @@ static int mvebu_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, } *map =kmalloc (nmaps *sizeof (struct pinctrl_map ),GFP_KERNEL ); -if (map =NULL ) { +if (*map =NULL ) {dev_err (pctl->dev,"cannot allocate pinctrl_map memory for %s\n" , np->name);
Dan,
Quoted 3 lines · Dan Carpenter
We wanted to test "*map" here instead of "map".
Signed-off-by Dan Carpenter <[email protected]>
Acked-by Jason Cooper <[email protected]>
thx,
Jason.
Quoted 3 lines · Dan Carpenter
We wanted to test "*map" here instead of "map".
Signed-off-by Dan Carpenter <[email protected]>
Patch applied with Jason's ACK.
Yours,
Linus Walleij