memory: atmel-ebi: fix return value check in at91_ebi_dev_disable()
Fix the retrn value check which testing the wrong variable in at91_ebi_dev_disable(). Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
This commit is contained in:
parent
1001354ca3
commit
ecc2d430fa
@ -657,7 +657,7 @@ static int at91_ebi_dev_disable(struct at91_ebi *ebi, struct device_node *np)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL);
|
newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL);
|
||||||
if (!newprop->name)
|
if (!newprop->value)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
newprop->length = sizeof("disabled");
|
newprop->length = sizeof("disabled");
|
||||||
|
Loading…
Reference in New Issue
Block a user