From: Chris Wilson Date: Tue, 12 Aug 2014 19:05:49 +0000 (+0100) Subject: drm/i915: Remove num_pages parameter to i915_error_object_create() X-Git-Tag: omap-for-v3.19/prcm-cleanup~70^2~32^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae62dc62b340edd0f6a5a2522f284234e82c0ec;p=pandora-kernel.git drm/i915: Remove num_pages parameter to i915_error_object_create() For cleanliness, i915_error_object_create() was written to handle the NULL pointer in a central location. The macro that wrapped it and passed it a num_pages to use, was not safe. As we now never limit the num_pages to use (we did so at one point to only capture the first page of the context), we can remove the redundant macro and be NULL safe again. Signed-off-by: Chris Wilson Cc: Jesse Barnes Cc: John Harrison Reviewed-by: Mika Kuoppala Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed