tools/thermal: Remove unused 'mds' and 'nrhandler' variables
authorKuan-Wei Chiu <visitorckw@gmail.com>
Tue, 26 Sep 2023 17:37:36 +0000 (01:37 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 15 Oct 2023 21:40:10 +0000 (23:40 +0200)
commitde84da588f35423c5c2e6a46f2bc8a07f8eaf793
tree4e75dd23384cdc7f051eb83583037e5b17395750
parentebd1dea94b2e9b60ca8630c7de7602bae08d401d
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.com
tools/thermal/lib/mainloop.c