Index: chromeos/cert_loader.cc |
diff --git a/chromeos/cert_loader.cc b/chromeos/cert_loader.cc |
index b72d43aa17b0b9bf34248ae273531b4f05e42635..8c22279523ab382dc673fb7d73c0db9175d3416f 100644 |
--- a/chromeos/cert_loader.cc |
+++ b/chromeos/cert_loader.cc |
@@ -88,8 +88,7 @@ int CertLoader::TPMTokenSlotID() const { |
if (!database_) |
return -1; |
crypto::ScopedPK11Slot slot(database_->GetPrivateSlot()); |
- if (!slot) |
- return -1; |
+ DCHECK(slot); |
return static_cast<int>(PK11_GetSlotID(slot.get())); |
} |
@@ -99,8 +98,7 @@ bool CertLoader::IsHardwareBacked() const { |
if (!database_) |
return false; |
crypto::ScopedPK11Slot slot(database_->GetPrivateSlot()); |
- if (!slot) |
- return false; |
+ DCHECK(slot); |
return PK11_IsHW(slot.get()); |
} |