]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove pointer indirection for hangcheck_state local
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Dec 2017 13:09:48 +0000 (13:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Dec 2017 21:55:13 +0000 (21:55 +0000)
commit7f2b55f965a88bb486dbb307bf77ef45216012cd
tree0413af5be0994c24836cb1b028548b01e4c33765
parent275bfad3335b0db0f2b1bbef7fc409d9cccfeb00
drm/i915: Remove pointer indirection for hangcheck_state local

Use the local on-stack struct directly rather than hide it behind a
pointer. This should be both clearer for the reader and the compiler (we
rely on the compiler seeing through the functions to spot uninitialized
uses of the local).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171219130948.6282-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_hangcheck.c