"NULL !=" = NULL
R=reed@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/544233002
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp
index b69f879..dd1d1c8 100644
--- a/src/images/SkImageDecoder_libpng.cpp
+++ b/src/images/SkImageDecoder_libpng.cpp
@@ -62,7 +62,7 @@
stream->ref();
}
~SkPNGImageIndex() {
- if (NULL != fPng_ptr) {
+ if (fPng_ptr) {
png_destroy_read_struct(&fPng_ptr, &fInfo_ptr, png_infopp_NULL);
}
}
@@ -1161,7 +1161,7 @@
// we must do this after we have locked the pixels
SkColorTable* ctable = bitmap.getColorTable();
- if (NULL != ctable) {
+ if (ctable) {
if (ctable->count() == 0) {
return false;
}