drm/i915/guc: Clean up of register capture search
authorJohn Harrison <John.C.Harrison@Intel.com>
Sat, 11 Mar 2023 06:37:13 +0000 (22:37 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 14 Mar 2023 01:27:09 +0000 (18:27 -0700)
commit53c4e64c6a0fdadc972217343f4439a96542f56e
tree4205c5028a3d9fff6df428b71dae822845c5893b
parent9724ecdbb9ddd6da3260e4a442574b90fc75188a
drm/i915/guc: Clean up of register capture search

The comparison in the search for a matching register capture node was
not the most readable. It was also assuming that a zero GuC id means
invalid, which it does not. So remove one invalid term, one redundant
term and re-format to keep each term on a single line, and only one
term per line.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230311063714.570389-3-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c