thermal: Fix bugprone-use-after-move.
authorJosh Gao <jmgao@google.com>
Wed, 18 Mar 2020 02:27:13 +0000 (19:27 -0700)
committerFrancescodario Cuzzocrea <bosconovic@gmail.com>
Tue, 22 Dec 2020 10:37:02 +0000 (11:37 +0100)
commit998e4cfbfb6912a4e7d9bd562a02a45e41798cf3
tree6d5ce6aa707865d914d394dc6c4367bc7a9e8d5f
parentcba0d8ef11300d9a152c60c3d32d23c5d0c60778
thermal: Fix bugprone-use-after-move.

fd was moved out of, so we were adding -1 to the looper.

Bug: http://b/150783499
Test: treehugger

(cherry picked from commit 56ed76601d2fa5f1a1e6f7f24d79975a69f43a39)

Change-Id: Ib571f32078fd9adb91a1e619110330583b75482b
hidl/thermal/utils/thermal_watcher.cpp