Re: [PATCH -next] memory: atmel-ebi: fix return value check in at91_ebi_dev_disable()

2016-10-20 Thread Alexandre Belloni
On 16/09/2016 at 13:03:47 +, Wei Yongjun wrote :
> From: Wei Yongjun 
> 
> Fix the retrn value check which testing the wrong variable
> in at91_ebi_dev_disable().
> 
> Signed-off-by: Wei Yongjun 
> ---
>  drivers/memory/atmel-ebi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
Applied, thanks.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


Re: [PATCH -next] memory: atmel-ebi: fix return value check in at91_ebi_dev_disable()

2016-10-20 Thread Alexandre Belloni
On 16/09/2016 at 13:03:47 +, Wei Yongjun wrote :
> From: Wei Yongjun 
> 
> Fix the retrn value check which testing the wrong variable
> in at91_ebi_dev_disable().
> 
> Signed-off-by: Wei Yongjun 
> ---
>  drivers/memory/atmel-ebi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
Applied, thanks.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


[PATCH -next] memory: atmel-ebi: fix return value check in at91_ebi_dev_disable()

2016-09-16 Thread Wei Yongjun
From: Wei Yongjun 

Fix the retrn value check which testing the wrong variable
in at91_ebi_dev_disable().

Signed-off-by: Wei Yongjun 
---
 drivers/memory/atmel-ebi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c
index b5ed3bd..047d6fc 100644
--- a/drivers/memory/atmel-ebi.c
+++ b/drivers/memory/atmel-ebi.c
@@ -657,7 +657,7 @@ static int at91_ebi_dev_disable(struct at91_ebi *ebi, 
struct device_node *np)
return -ENOMEM;
 
newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL);
-   if (!newprop->name)
+   if (!newprop->value)
return -ENOMEM;
 
newprop->length = sizeof("disabled");





[PATCH -next] memory: atmel-ebi: fix return value check in at91_ebi_dev_disable()

2016-09-16 Thread Wei Yongjun
From: Wei Yongjun 

Fix the retrn value check which testing the wrong variable
in at91_ebi_dev_disable().

Signed-off-by: Wei Yongjun 
---
 drivers/memory/atmel-ebi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c
index b5ed3bd..047d6fc 100644
--- a/drivers/memory/atmel-ebi.c
+++ b/drivers/memory/atmel-ebi.c
@@ -657,7 +657,7 @@ static int at91_ebi_dev_disable(struct at91_ebi *ebi, 
struct device_node *np)
return -ENOMEM;
 
newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL);
-   if (!newprop->name)
+   if (!newprop->value)
return -ENOMEM;
 
newprop->length = sizeof("disabled");