mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
pinctrl: pinctrl-single: Fix error check condition
*map should be tested for NULL instead of map. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
7d8dd20e56
commit
00e79d1272
1 changed files with 1 additions and 1 deletions
|
|
@ -800,7 +800,7 @@ static int pcs_dt_node_to_map(struct pinctrl_dev *pctldev,
|
|||
pcs = pinctrl_dev_get_drvdata(pctldev);
|
||||
|
||||
*map = devm_kzalloc(pcs->dev, sizeof(**map), GFP_KERNEL);
|
||||
if (!map)
|
||||
if (!*map)
|
||||
return -ENOMEM;
|
||||
|
||||
*num_maps = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue