Skip to content

Commit 3ff4d05

Browse files
moonlight83340danieldegrasse
authored andcommitted
drivers: clock_control: Remove unused 'sys' argument
The 'sys' argument in clock_control_renesas_ra_get_rate() is unused and has been removed to clean up the implementation. This also aligns with the function's actual behavior and eliminates misleading validation logic. Signed-off-by: Gaetan Perrot <[email protected]>
1 parent d2e8d0a commit 3ff4d05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/clock_control/clock_control_renesas_ra_cgc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@ static int clock_control_renesas_ra_off(const struct device *dev, clock_control_
7171
static int clock_control_renesas_ra_get_rate(const struct device *dev, clock_control_subsys_t sys,
7272
uint32_t *rate)
7373
{
74+
ARG_UNUSED(sys);
75+
7476
const struct clock_control_ra_pclk_cfg *config = dev->config;
7577
uint32_t clk_src_rate;
7678
uint32_t clk_div_val;
7779

78-
if (!dev || !sys || !rate) {
80+
if (!dev || !rate) {
7981
return -EINVAL;
8082
}
8183

0 commit comments

Comments
 (0)