Index: tools/skdiff_image.cpp |
diff --git a/tools/skdiff_image.cpp b/tools/skdiff_image.cpp |
index 172f62b555b17585d829b1f5a54ad4237b949a26..89f73810e70cfeac55d72ab8a6f606c310f4cefa 100644 |
--- a/tools/skdiff_image.cpp |
+++ b/tools/skdiff_image.cpp |
@@ -37,11 +37,11 @@ static void create_diff_images (DiffMetricProc dmp, |
drp->fComparison.fStatus = DiffResource::kSpecified_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) { |