hidl: return BAD_VALUE from RemoveOfflineLicense when keyset is not found
Bug: 127828539 Test: VtsHalDrmV1_2TargetTest Change-Id: Ia567be076a9460546c59c2a38231e18bb0549ce3
This commit is contained in:
@@ -1159,11 +1159,7 @@ Return<Status> WVDrmPlugin::removeOfflineLicense(const KeySetId &keySetId) {
|
||||
std::string(keySetId.begin(), keySetId.end()),
|
||||
wvcdm::kSecurityLevelL3,
|
||||
identifier);
|
||||
if (isCdmResponseTypeSuccess(res)) {
|
||||
status = Status::OK;
|
||||
} else {
|
||||
status = Status::ERROR_DRM_INVALID_STATE;
|
||||
}
|
||||
status = mapCdmResponseType(res);
|
||||
}
|
||||
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user