Remove redundant check.

Submitted by Guillermo Rodriguez on July 4, 2017, 10:19 a.m.

Details

Message ID 1499163577-13455-1-git-send-email-guillerodriguez.dev@gmail.com
State New
Series "Remove redundant check."
Headers show

Commit Message

Guillermo Rodriguez July 4, 2017, 10:19 a.m.
Spotted by David Kastrup <dak@gnu.org>.

---
 src/cairo-surface.c | 3 ---
 1 file changed, 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index fc5f876..44d8c75 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -508,9 +508,6 @@  cairo_surface_create_similar (cairo_surface_t  *other,
     if (unlikely (! CAIRO_CONTENT_VALID (content)))
 	return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_CONTENT);
 
-        if (unlikely (other->status))
-	return _cairo_surface_create_in_error (other->status);
-
     /* We inherit the device scale, so create a larger surface */
     width = width * other->device_transform.xx;
     height = height * other->device_transform.yy;