Skip to content

Commit 284c537

Browse files
liambeguinbebarino
authored andcommitted
clk: lmk04832: drop redundant fallthrough statements
When the body of a case statement is empty, it is well understood that it is intentional and explicit fallthrough statements are not required. Drop them. Signed-off-by: Liam Beguin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent e73f0f0 commit 284c537

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

drivers/clk/clk-lmk04832.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -269,23 +269,14 @@ static bool lmk04832_regmap_rd_regs(struct device *dev, unsigned int reg)
269269
{
270270
switch (reg) {
271271
case LMK04832_REG_RST3W ... LMK04832_REG_ID_MASKREV:
272-
fallthrough;
273272
case LMK04832_REG_ID_VNDR_MSB:
274-
fallthrough;
275273
case LMK04832_REG_ID_VNDR_LSB:
276-
fallthrough;
277274
case LMK04832_REG_CLKOUT_CTRL0(0) ... LMK04832_REG_PLL2_DLD_CNT_LSB:
278-
fallthrough;
279275
case LMK04832_REG_PLL2_LD:
280-
fallthrough;
281276
case LMK04832_REG_PLL2_PD:
282-
fallthrough;
283277
case LMK04832_REG_PLL1R_RST:
284-
fallthrough;
285278
case LMK04832_REG_CLR_PLL_LOST ... LMK04832_REG_RB_DAC_VAL_LSB:
286-
fallthrough;
287279
case LMK04832_REG_RB_HOLDOVER:
288-
fallthrough;
289280
case LMK04832_REG_SPI_LOCK:
290281
return true;
291282
default:
@@ -297,27 +288,18 @@ static bool lmk04832_regmap_wr_regs(struct device *dev, unsigned int reg)
297288
{
298289
switch (reg) {
299290
case LMK04832_REG_RST3W:
300-
fallthrough;
301291
case LMK04832_REG_POWERDOWN:
302292
return true;
303293
case LMK04832_REG_ID_DEV_TYPE ... LMK04832_REG_ID_MASKREV:
304-
fallthrough;
305294
case LMK04832_REG_ID_VNDR_MSB:
306-
fallthrough;
307295
case LMK04832_REG_ID_VNDR_LSB:
308296
return false;
309297
case LMK04832_REG_CLKOUT_CTRL0(0) ... LMK04832_REG_PLL2_DLD_CNT_LSB:
310-
fallthrough;
311298
case LMK04832_REG_PLL2_LD:
312-
fallthrough;
313299
case LMK04832_REG_PLL2_PD:
314-
fallthrough;
315300
case LMK04832_REG_PLL1R_RST:
316-
fallthrough;
317301
case LMK04832_REG_CLR_PLL_LOST ... LMK04832_REG_RB_DAC_VAL_LSB:
318-
fallthrough;
319302
case LMK04832_REG_RB_HOLDOVER:
320-
fallthrough;
321303
case LMK04832_REG_SPI_LOCK:
322304
return true;
323305
default:

0 commit comments

Comments
 (0)