Skip to content

Commit 01ed230

Browse files
ColinIanKingbroonie
authored andcommitted
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>
1 parent 26cc2a7 commit 01ed230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/regmap/regmap-mmio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int regmap_mmio_get_min_stride(size_t val_bits)
4848
case 8:
4949
/* The core treats 0 as 1 */
5050
min_stride = 0;
51-
return 0;
51+
break;
5252
case 16:
5353
min_stride = 2;
5454
break;

0 commit comments

Comments
 (0)