diff options
| author | Ethan Chen <intervigil@gmail.com> | 2018-04-28 16:18:00 -0700 |
|---|---|---|
| committer | dianlujitao <dianlujitao@lineageos.org> | 2018-04-29 16:48:23 +0800 |
| commit | 284a9cc93554af09614dc4e08cf2c7022c1af25f (patch) | |
| tree | 350e7d842df6853fd8df1c5bd88353864abb3fd8 | |
| parent | 0d4047986344baf520cc9d5ea3ab5c4c2cff622b (diff) | |
| download | android_hardware_lineage_interfaces-284a9cc93554af09614dc4e08cf2c7022c1af25f.tar.gz android_hardware_lineage_interfaces-284a9cc93554af09614dc4e08cf2c7022c1af25f.tar.bz2 android_hardware_lineage_interfaces-284a9cc93554af09614dc4e08cf2c7022c1af25f.zip | |
livedisplay: Don't assign -1 to uint64_t
* mHandle is defined as an unsigned integer, so we probably
shouldn't assign a negative number to it to mark it as invalid.
Change-Id: Ie952d50a67b75a576f49fdb9eac5dc3291c55ed1
| -rw-r--r-- | livedisplay/1.0/default/impl/SDM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/livedisplay/1.0/default/impl/SDM.cpp b/livedisplay/1.0/default/impl/SDM.cpp index ab50c90..ea0ccdb 100644 --- a/livedisplay/1.0/default/impl/SDM.cpp +++ b/livedisplay/1.0/default/impl/SDM.cpp @@ -82,7 +82,7 @@ status_t SDM::initialize() { status_t SDM::deinitialize() { SDMController::getInstance().deinit(mHandle, 0); - mHandle = -1; + mHandle = 0; return OK; } |
