Commit 988bb4a1 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Boris Brezillon

i3c: master: dw-i3c-master: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

This patch fixes the following warning:

drivers/i3c/master/dw-i3c-master.c: In function ‘dw_i3c_master_bus_init’:
drivers/i3c/master/dw-i3c-master.c:603:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (ret)
      ^
drivers/i3c/master/dw-i3c-master.c:605:2: note: here
  case I3C_BUS_MODE_PURE:
  ^~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: default avatarVitor Soares <vitor.soares@synopsys.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent 65907c5d
...@@ -596,6 +596,7 @@ static int dw_i3c_master_bus_init(struct i3c_master_controller *m) ...@@ -596,6 +596,7 @@ static int dw_i3c_master_bus_init(struct i3c_master_controller *m)
ret = dw_i2c_clk_cfg(master); ret = dw_i2c_clk_cfg(master);
if (ret) if (ret)
return ret; return ret;
/* fall through */
case I3C_BUS_MODE_PURE: case I3C_BUS_MODE_PURE:
ret = dw_i3c_clk_cfg(master); ret = dw_i3c_clk_cfg(master);
if (ret) if (ret)
......
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