diff options
author | Colin Ian King <colin.king@canonical.com> | 2014-03-11 11:25:09 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-11 19:05:05 +0000 |
commit | f377ed107b031fb0e67fa4a1d1096ab1c7818a84 (patch) | |
tree | 105b1a725a1db29ffa92051b6960af7fb2fb2dc1 /drivers/regulator/da9063-regulator.c | |
parent | 8b5baa56f27369af57a755e364d02c02efed611b (diff) | |
download | op-kernel-dev-f377ed107b031fb0e67fa4a1d1096ab1c7818a84.zip op-kernel-dev-f377ed107b031fb0e67fa4a1d1096ab1c7818a84.tar.gz |
regulator: da9063: fix assignment of da9063_reg_matches to NULL
cppcheck detected an incorrect assignment:
drivers/regulator/da9063-regulator.c:711]: (warning) Assignment
of function parameter has no effect outside the function
the original code didn't do anything, instead, *da9063_reg_matches
needs to be set to NULL.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/da9063-regulator.c')
-rw-r--r-- | drivers/regulator/da9063-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index 4c09f75..6027bd5 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c @@ -709,7 +709,7 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt( struct platform_device *pdev, struct of_regulator_match **da9063_reg_matches) { - da9063_reg_matches = NULL; + *da9063_reg_matches = NULL; return ERR_PTR(-ENODEV); } #endif |