Index: src/effects/SkDashPathEffect.cpp |
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp |
index 66462af85bb22e127dc38429d4373704110ba379..f9a56d0ff41fe129a6af8cb15c0dded767be211c 100644 |
--- a/src/effects/SkDashPathEffect.cpp |
+++ b/src/effects/SkDashPathEffect.cpp |
@@ -104,7 +104,7 @@ bool SkDashPathEffect::asPoints(PointData* results, |
return false; |
} |
- if (NULL != results) { |
+ if (results) { |
results->fFlags = 0; |
SkScalar clampedInitialDashLength = SkMinScalar(length, fInitialDashLength); |
@@ -229,7 +229,7 @@ bool SkDashPathEffect::asPoints(PointData* results, |
SkPathEffect::DashType SkDashPathEffect::asADash(DashInfo* info) const { |
if (info) { |
- if (info->fCount >= fCount && NULL != info->fIntervals) { |
+ if (info->fCount >= fCount && info->fIntervals) { |
memcpy(info->fIntervals, fIntervals, fCount * sizeof(SkScalar)); |
} |
info->fCount = fCount; |