diff options
| author | Algapally Santosh Sagar <[email protected]> | 2023-05-19 17:08:15 +0530 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2023-06-12 13:24:31 +0200 |
| commit | 71c5fdc2a3a2a2f2094e05c97ebd309530522903 (patch) | |
| tree | f9b36ea0d7ccdf75c991140fd026b6355bf398ab | |
| parent | ded539ff6633f3ba493e18bf23ce489bfc03f28d (diff) | |
clk: zynqmp: Add fallthrough statement in the switch case
Add fallthrough statement in switch case to fix the sparse warning.
In function 'zynqmp_clk_get_rate': warning: this statement may
fall through [-Wimplicit-fallthrough=]
Signed-off-by: Algapally Santosh Sagar <[email protected]>
Signed-off-by: Venkatesh Yadav Abbarapu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
| -rw-r--r-- | drivers/clk/clk_zynqmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index 45c679a627b..be0ee50e0e4 100644 --- a/drivers/clk/clk_zynqmp.c +++ b/drivers/clk/clk_zynqmp.c @@ -691,6 +691,7 @@ static ulong zynqmp_clk_get_rate(struct clk *clk) case topsw_lsbus: case sata_ref ... gpu_pp1_ref: two_divs = true; + fallthrough; case cpu_r5: case dbg_fpd: case ams_ref: |
