Index: src/images/SkImageDecoder_ktx.cpp |
diff --git a/src/images/SkImageDecoder_ktx.cpp b/src/images/SkImageDecoder_ktx.cpp |
index 64a37d9e9ba31315fb9211f0a8581bd6f2618902..20c8bbc00b895fae625e90bbb719f8faa0bf6eb7 100644 |
--- a/src/images/SkImageDecoder_ktx.cpp |
+++ b/src/images/SkImageDecoder_ktx.cpp |
@@ -272,7 +272,7 @@ bool SkKTXImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int) |
SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData()); |
// Is this even encoded data? |
- if (NULL != data) { |
+ if (data) { |
const uint8_t *bytes = data->bytes(); |
if (etc1_pkm_is_valid(bytes)) { |
return this->encodePKM(stream, data); |