mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-04-14 13:20:37 +00:00
mfd: sec-core: Fix sparse NULL pointer warning
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> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
ec9e4ba67e
commit
005718c08b
@ -204,7 +204,7 @@ static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
|
|||||||
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)
|
struct device *dev)
|
||||||
{
|
{
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user