public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] mfd: sec: fix sparse NULL pointer warning
@ 2013-12-07  6:02 Wei Yongjun
  2013-12-09 10:20 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-12-07  6:02 UTC (permalink / raw)
  To: sbkim73, sameo, lee.jones, grant.likely, rob.herring
  Cc: yongjun_wei, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Fixes the following sparse warning:

drivers/mfd/sec-core.c:202:16: warning: Using plain integer as NULL pointer

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/mfd/sec-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 3a20b47..87fa1e6 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -199,7 +199,7 @@ static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
 static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
 					struct device *dev)
 {
-	return 0;
+	return NULL;
 }
 #endif
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] mfd: sec: fix sparse NULL pointer warning
  2013-12-07  6:02 [PATCH -next] mfd: sec: fix sparse NULL pointer warning Wei Yongjun
@ 2013-12-09 10:20 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2013-12-09 10:20 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: sbkim73, sameo, grant.likely, rob.herring, yongjun_wei,
	linux-kernel

On Sat, 07 Dec 2013, Wei Yongjun wrote:

> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Fixes the following sparse warning:
> 
> drivers/mfd/sec-core.c:202:16: warning: Using plain integer as NULL pointer
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
>  drivers/mfd/sec-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-09 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-07  6:02 [PATCH -next] mfd: sec: fix sparse NULL pointer warning Wei Yongjun
2013-12-09 10:20 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox