thermal/drivers/qcom: Remove some unused fields in struct qpnp_tm_chip
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 9 Apr 2024 19:56:34 +0000 (21:56 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Apr 2024 10:40:29 +0000 (12:40 +0200)
In "struct qpnp_tm_chip", the 'prev_stage' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/d1c3a3c455f485dae46290e3488daf1dcc1d355a.1712687589.git.christophe.jaillet@wanadoo.fr
drivers/thermal/qcom/qcom-spmi-temp-alarm.c

index 78c5cfe6a0c0f5c671fa71dbc59cefb028255e22..3cd74f6cac8f6eabd04bd6efbc1a16964bb5b4eb 100644 (file)
@@ -74,7 +74,6 @@ struct qpnp_tm_chip {
        long                            temp;
        unsigned int                    thresh;
        unsigned int                    stage;
-       unsigned int                    prev_stage;
        unsigned int                    base;
        /* protects .thresh, .stage and chip registers */
        struct mutex                    lock;