Clean Up Warnings in Android Glue Code
(This is a merge of go/wvgerrit/24739)
This cleans up some warnings in the Android glue code:
1) Checking if unsigned values are >= 0.
2) Using {0} initializer syntax instead of fully expanding to {0,0}.
Bug: 34394125
Test: Verified compilation passes
Change-Id: Id59730b97da7fce320f634451a44a4df4bf0b494
This commit is contained in:
@@ -313,18 +313,7 @@ Return<void> WVCryptoPlugin::decrypt(
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t status;
|
||||
uint32_t bytesWritten;
|
||||
|
||||
if (bufferOffset >= 0) {
|
||||
status = android::OK;
|
||||
bytesWritten = bufferOffset;
|
||||
} else {
|
||||
status = bufferOffset;
|
||||
bytesWritten = 0;
|
||||
}
|
||||
|
||||
_hidl_cb(toStatus(status), bytesWritten, errorDetailMsg.c_str());
|
||||
_hidl_cb(Status::OK, bufferOffset, errorDetailMsg.c_str());
|
||||
return Void();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user