]> Gentwo Git Trees - linux/.git/commitdiff
pwm: th1520: Fix clippy warning for redundant struct field init
authorMichal Wilczynski <m.wilczynski@samsung.com>
Tue, 28 Oct 2025 12:22:35 +0000 (13:22 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Thu, 13 Nov 2025 09:21:34 +0000 (10:21 +0100)
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>
drivers/pwm/pwm_th1520.rs

index ee2a6d573bc23dd0d18c0dde9ef8513160948bc6..b2d83c121c5c728735b2e0af441d1352cb37ed6a 100644 (file)
@@ -185,7 +185,7 @@ fn round_waveform_tohw(
         );
 
         Ok(pwm::RoundedWaveform {
-            status: status,
+            status,
             hardware_waveform: wfhw,
         })
     }