]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: zynqmp: Add fallthrough statement in the switch case
authorAlgapally Santosh Sagar <santoshsagar.algapally@amd.com>
Fri, 19 May 2023 11:38:15 +0000 (17:08 +0530)
committerMichal Simek <michal.simek@amd.com>
Mon, 12 Jun 2023 11:24:31 +0000 (13:24 +0200)
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 <santoshsagar.algapally@amd.com>
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20230519113816.22083-2-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/clk/clk_zynqmp.c

index 45c679a627b3353778c089951b8f513190f7c286..be0ee50e0e4fdb728d35b186011ef467f6935c71 100644 (file)
@@ -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: