diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-05 11:55:43 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-12 12:05:01 +0200 |
commit | 83cd18fc730069fef5c6b84f95f210f06312e626 (patch) | |
tree | ccda0be60e5a936c9a8bd2f6024036b5f1ca67da /drivers | |
parent | 0f3188c636fe9a39ebeb942e9fdcbd2f34c28b19 (diff) | |
download | barebox-83cd18fc730069fef5c6b84f95f210f06312e626.tar.gz barebox-83cd18fc730069fef5c6b84f95f210f06312e626.tar.xz |
regmap-mmio: regmap_mmio_get_min_stride: unify branches for readability
We just return min_stride after the switch statement, so instead of
returning 0 directly for 8 bits, just have all code reach the same return
at the end.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220905095557.596891-19-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-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 c8422ca46f..7b1501df93 100644 --- a/drivers/base/regmap/regmap-mmio.c +++ b/drivers/base/regmap/regmap-mmio.c @@ -46,7 +46,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; |