drm/i915: Remove num_pages parameter to i915_error_object_create()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Aug 2014 19:05:49 +0000 (20:05 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Sep 2014 08:54:24 +0000 (10:54 +0200)
commit8ae62dc62b340edd0f6a5a2522f284234e82c0ec
tree801cb6d31cd9373a5395fd5777f6c38330c475d6
parentb3c3f5e69e25583703383d674e73d0ce26e731c3
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 <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c