Skip to content

Commit 26dcb42

Browse files
Michal WilczynskiUwe Kleine-König
authored andcommitted
pwm: th1520: Fix clippy warning for redundant struct field init
Clippy warns about redundant struct field initialization when the field name and the variable name are the same (e.g., `status: status`). No functional change. Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev> Link: https://patch.msgid.link/20251028-pwm_fixes-v1-4-25a532d31998@samsung.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent 6fe9e91 commit 26dcb42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pwm/pwm_th1520.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl pwm::PwmOps for Th1520PwmDriverData {
185185
);
186186

187187
Ok(pwm::RoundedWaveform {
188-
status: status,
188+
status,
189189
hardware_waveform: wfhw,
190190
})
191191
}

0 commit comments

Comments
 (0)