Remove redundant check.

Spotted by David Kastrup <dak@gnu.org>.

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
Guillermo Rodriguez 2017-07-04 12:19:37 +02:00 committed by Bryce Harrington
parent 5ac7b3652d
commit 339fe9a768

View file

@ -504,13 +504,9 @@ cairo_surface_create_similar (cairo_surface_t *other,
return _cairo_surface_create_in_error (CAIRO_STATUS_SURFACE_FINISHED);
if (unlikely (width < 0 || height < 0))
return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_SIZE);
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;