Commit de84da5
tools/thermal: Remove unused 'mds' and 'nrhandler' variables
In the previous code, the 'mds' and 'nrhandler' variables were not
utilized in the codebase. Additionally, there was a potential NULL
pointer dereference and memory leak due to improper handling of memory
reallocation failure.
This patch removes the unused 'mds' and 'nrhandler' variables along with
the associated code, addressing the unused variable issue, NULL pointer
dereference issue and the memory leak issue.
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230926173736.1142420-1-visitorckw@gmail.com1 parent ebd1dea commit de84da5
1 file changed
Lines changed: 0 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 61 | | |
72 | 62 | | |
73 | 63 | | |
| |||
76 | 66 | | |
77 | 67 | | |
78 | 68 | | |
79 | | - | |
80 | 69 | | |
81 | 70 | | |
82 | 71 | | |
| |||
89 | 78 | | |
90 | 79 | | |
91 | 80 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 81 | | |
96 | 82 | | |
97 | 83 | | |
98 | | - | |
99 | | - | |
100 | 84 | | |
101 | 85 | | |
102 | 86 | | |
| |||
0 commit comments