diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-09-22 09:04:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-22 12:33:18 +0100 |
commit | 01ed230761e51f0403b3f3845c11cb67014487e2 (patch) | |
tree | 7cf2c43b435bfc6cc6247a079bcd637f77e4aa3b /drivers/base | |
parent | 26cc2a788a1903da3ccff97061099f091255ecaf (diff) | |
download | linux-stable-01ed230761e51f0403b3f3845c11cb67014487e2.tar.gz linux-stable-01ed230761e51f0403b3f3845c11cb67014487e2.tar.bz2 linux-stable-01ed230761e51f0403b3f3845c11cb67014487e2.zip |
regmap: mmio: replace return 0 with break in switch statement
Variable min_stride is assigned a value that is never read, fix this by
replacing the return 0 with a break statement. This also makes the case
statement consistent with the other cases in the switch statement.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220922080445.818020-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regmap-mmio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c index 8bd8d42de3fe..3ccdd86a97e7 100644 --- a/drivers/base/regmap/regmap-mmio.c +++ b/drivers/base/regmap/regmap-mmio.c @@ -48,7 +48,7 @@ static int regmap_mmio_get_min_stride(size_t val_bits) case 8: /* The core treats 0 as 1 */ min_stride = 0; - return 0; + break; case 16: min_stride = 2; break; |