"NULL !=" = NULL
R=reed@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/544233002
diff --git a/src/core/SkResourceCache.cpp b/src/core/SkResourceCache.cpp
index 7ffdfff..73f788c 100644
--- a/src/core/SkResourceCache.cpp
+++ b/src/core/SkResourceCache.cpp
@@ -222,7 +222,7 @@
SkASSERT(rec);
// See if we already have this key (racy inserts, etc.)
const Rec* existing = this->findAndLock(rec->getKey());
- if (NULL != existing) {
+ if (existing) {
SkDELETE(rec);
return existing;
}
@@ -242,7 +242,7 @@
SkASSERT(rec);
// See if we already have this key (racy inserts, etc.)
const Rec* existing = this->findAndLock(rec->getKey());
- if (NULL != existing) {
+ if (existing) {
SkDELETE(rec);
this->unlock(existing);
return;
@@ -414,9 +414,9 @@
}
SkASSERT(NULL == fHead->fPrev);
- SkASSERT(NULL != fHead->fNext);
+ SkASSERT(fHead->fNext);
SkASSERT(NULL == fTail->fNext);
- SkASSERT(NULL != fTail->fPrev);
+ SkASSERT(fTail->fPrev);
size_t used = 0;
int count = 0;