From: dirk Date: Sat, 26 Mar 2016 18:25:37 +0000 (+0100) Subject: Removed length calculation. X-Git-Tag: 7.0.1-0~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32786b341286c517daa0bec215a427c63a4c3ba1;p=imagemagick Removed length calculation. --- diff --git a/MagickCore/accelerate.c b/MagickCore/accelerate.c index e1b31387a..ac1aba4a5 100644 --- a/MagickCore/accelerate.c +++ b/MagickCore/accelerate.c @@ -4065,12 +4065,10 @@ static MagickBooleanType ComputeGrayscaleImage(Image *image, if (ALIGNED(inputPixels,CLQuantum)) { - length = image->columns * image->rows; clEnv->library->clEnqueueMapBuffer(queue, imageBuffer, CL_TRUE, CL_MAP_READ|CL_MAP_WRITE, 0, length * sizeof(CLQuantum), 0, NULL, NULL, &clStatus); } else { - length = image->columns * image->rows; clStatus = clEnv->library->clEnqueueReadBuffer(queue, imageBuffer, CL_TRUE, 0, length * sizeof(CLQuantum), inputPixels, 0, NULL, NULL); } if (clStatus != CL_SUCCESS)