Commit 01ed2307 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown

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: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220922080445.818020-1-colin.i.king@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 26cc2a78
...@@ -48,7 +48,7 @@ static int regmap_mmio_get_min_stride(size_t val_bits) ...@@ -48,7 +48,7 @@ static int regmap_mmio_get_min_stride(size_t val_bits)
case 8: case 8:
/* The core treats 0 as 1 */ /* The core treats 0 as 1 */
min_stride = 0; min_stride = 0;
return 0; break;
case 16: case 16:
min_stride = 2; min_stride = 2;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment