Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index fe31d61ef0182a590d959667f695f1bae309ea89..638f6708343ec6c8b24dcb5d35cde124cbfc5452 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -88,11 +88,7 @@ |
SkISize CodecSrc::size() const { |
SkAutoTUnref<SkData> encoded(SkData::NewFromFileName(fPath.c_str())); |
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(encoded)); |
- if (NULL != codec) { |
- return codec->getInfo().dimensions(); |
- } else { |
- return SkISize::Make(0, 0); |
- } |
+ return codec->getInfo().dimensions(); |
} |
Name CodecSrc::name() const { |