Re: [PATCH] regulator: remove unnecessary code

2017-02-21 Thread Mark Brown
On Mon, Feb 20, 2017 at 11:17:36PM -0600, Gustavo A. R. Silva wrote: > The name of an array used by itself will always return the array's address. > So it makes no sense to evaluate it, since the test will always evaluate as > true. > - if (pdata && pdata->regulators) { > + if (pdata) { T

[PATCH] regulator: remove unnecessary code

2017-02-20 Thread Gustavo A. R. Silva
The name of an array used by itself will always return the array's address. So it makes no sense to evaluate it, since the test will always evaluate as true. Addresses-Coverity-ID: 751412 Signed-off-by: Gustavo A. R. Silva --- drivers/regulator/da9055-regulator.c | 2 +- 1 file changed, 1 insert