Index: tools/skdiff_main.cpp |
diff --git a/tools/skdiff_main.cpp b/tools/skdiff_main.cpp |
index ba3221678e51c8e6f2ea9e593c6271a3cea42804..df07844734c4f02494f3dfda86a22c4e89e9a7c9 100644 |
--- a/tools/skdiff_main.cpp |
+++ b/tools/skdiff_main.cpp |
@@ -422,11 +422,11 @@ static void create_diff_images (DiffMetricProc dmp, |
drp->fComparison.fStatus = DiffResource::kExists_Status; |
SkAutoDataUnref baseFileBits(read_file(drp->fBase.fFullPath.c_str())); |
- if (NULL != baseFileBits) { |
+ if (baseFileBits) { |
drp->fBase.fStatus = DiffResource::kRead_Status; |
} |
SkAutoDataUnref comparisonFileBits(read_file(drp->fComparison.fFullPath.c_str())); |
- if (NULL != comparisonFileBits) { |
+ if (comparisonFileBits) { |
drp->fComparison.fStatus = DiffResource::kRead_Status; |
} |
if (NULL == baseFileBits || NULL == comparisonFileBits) { |