# HG changeset patch # User Matti Hamalainen # Date 1569320102 -10800 # Node ID a56f3bcb5476b04ebe7b573dd7346c7803d06f3e # Parent 85cd3d36e6704597c5dba29e20aa23c92960b573 Remove some useless checks. diff -r 85cd3d36e670 -r a56f3bcb5476 tools/lib64gfx.c --- a/tools/lib64gfx.c Tue Sep 24 12:44:44 2019 +0300 +++ b/tools/lib64gfx.c Tue Sep 24 13:15:02 2019 +0300 @@ -1402,17 +1402,6 @@ { DMC64GetPixelFunc getPixel; - // Sanity check arguments - if (dst == NULL || src == NULL || spec == NULL) - return DMERR_NULLPTR; - - if (dst->width != src->fmt->width || dst->height != src->fmt->height) - { - return dmError(DMERR_INVALID_DATA, - "Invalid src vs. dst width/height %d x %d <-> %d x %d\n", - src->fmt->width, src->fmt->height, dst->width, dst->height); - } - dmMemset(dst->data, 0, dst->size); // Check pixel getter function