regulator: twl6030: remove redundant range check min_uV > 1300000 && min_uV <= 1350000
authorColin Ian King <colin.king@canonical.com>
Fri, 24 Mar 2017 17:13:50 +0000 (17:13 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 24 Mar 2017 18:41:02 +0000 (18:41 +0000)
commitc635df496a5c397fd078b4e72a42e1be79632d7d
treedd111ced36a03fb19a94919d4f095b88bc7d47bd
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7
regulator: twl6030: remove redundant range check min_uV > 1300000 && min_uV <= 1350000

It has been pointed out to me that the range for vsel = 58 is actually
dead code as this is covered by an earlier check for (min_uV >= 700000)
&& (min_uV <= 1420000) so remove that check completely.

Reported-by: Alban Auzeill <alban.auzeill@sonarsource.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/twl6030-regulator.c