diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-04-09 21:56:34 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2024-04-23 12:40:29 +0200 |
commit | 0a0c8db8843c5d5e22e2ee275c35d6ecd0659414 (patch) | |
tree | 7b14adb2a782d66bac3d8d7dc5768bfeec20a31e | |
parent | thermal/drivers/tsens: Fix null pointer dereference (diff) | |
download | linux-0a0c8db8843c5d5e22e2ee275c35d6ecd0659414.tar.xz linux-0a0c8db8843c5d5e22e2ee275c35d6ecd0659414.zip |
thermal/drivers/qcom: Remove some unused fields in struct qpnp_tm_chip
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
-rw-r--r-- | drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index 78c5cfe6a0c0..3cd74f6cac8f 100644 --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c @@ -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; |