regulator: da9063: fix assignment of da9063_reg_matches to NULL
authorColin Ian King <colin.king@canonical.com>
Tue, 11 Mar 2014 11:25:09 +0000 (11:25 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 11 Mar 2014 19:05:05 +0000 (19:05 +0000)
commitf377ed107b031fb0e67fa4a1d1096ab1c7818a84
tree105b1a725a1db29ffa92051b6960af7fb2fb2dc1
parent8b5baa56f27369af57a755e364d02c02efed611b
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>
drivers/regulator/da9063-regulator.c