Index: src/gpu/gl/GrGLCreateNullInterface.cpp |
diff --git a/src/gpu/gl/GrGLCreateNullInterface.cpp b/src/gpu/gl/GrGLCreateNullInterface.cpp |
index 8b6d9a6748fd2eec72055432dd5797a0b9ada3e3..9cac1c675add39c8af87b23532d8c9c5e0cfc285 100644 |
--- a/src/gpu/gl/GrGLCreateNullInterface.cpp |
+++ b/src/gpu/gl/GrGLCreateNullInterface.cpp |
@@ -21,7 +21,7 @@ public: |
~BufferObj() { SkDELETE_ARRAY(fDataPtr); } |
void allocate(GrGLsizeiptr size, const GrGLchar* dataPtr) { |
- if (NULL != fDataPtr) { |
+ if (fDataPtr) { |
SkASSERT(0 != fSize); |
SkDELETE_ARRAY(fDataPtr); |
} |
@@ -65,7 +65,7 @@ public: |
BufferObj* lookUp(GrGLuint id) { |
BufferObj* buffer = fBuffers[id]; |
- SkASSERT(NULL != buffer && buffer->id() == id); |
+ SkASSERT(buffer && buffer->id() == id); |
return buffer; |
} |