drm/i915/selftests: Initialise request to silence a compiler
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jun 2018 12:49:23 +0000 (13:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jun 2018 18:20:33 +0000 (19:20 +0100)
commit920d3fb1a00c3d7bb24c9b396c8b2950192c5ad8
treec8f47497f70e6226ce3a9e2999d5b8178bf2c157
parent51a9f6dfc00d35f927ecfaf6f0ae8ebaba39b3fe
drm/i915/selftests: Initialise request to silence a compiler

With an old (4.7.3 on 32bit) gcc, it emits a warning for

In file included from drivers/gpu/drm/i915/i915_request.c:1425:0:
drivers/gpu/drm/i915/selftests/i915_request.c: In function ‘live_nop_request’:
drivers/gpu/drm/i915/selftests/i915_request.c:380:21: error: ‘request’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Silence it by just setting it to NULL on initialisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180614124923.18071-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_request.c