Skip to content

Commit 0a0c8db

Browse files
tititiou36dlezcano
authored andcommitted
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 <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/d1c3a3c455f485dae46290e3488daf1dcc1d355a.1712687589.git.christophe.jaillet@wanadoo.fr
1 parent d998ddc commit 0a0c8db

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/thermal/qcom/qcom-spmi-temp-alarm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ struct qpnp_tm_chip {
7474
long temp;
7575
unsigned int thresh;
7676
unsigned int stage;
77-
unsigned int prev_stage;
7877
unsigned int base;
7978
/* protects .thresh, .stage and chip registers */
8079
struct mutex lock;

0 commit comments

Comments
 (0)