Commit 44c1ee17 authored by Daniele Ceraolo Spurio's avatar Daniele Ceraolo Spurio Committed by Chris Wilson

drm/i915/huc: fix status check

Fix botched refactoring of the code that uncorrectly split a check on a
bool, treating it as a u32.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: 84b1ca2f ("drm/i915/uc: prefer intel_gt over i915 in GuC/HuC paths")
Signed-off-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190723153733.19401-1-daniele.ceraolospurio@intel.com
parent 14f8a0eb
...@@ -162,7 +162,7 @@ int intel_huc_check_status(struct intel_huc *huc) ...@@ -162,7 +162,7 @@ int intel_huc_check_status(struct intel_huc *huc)
{ {
struct intel_gt *gt = huc_to_gt(huc); struct intel_gt *gt = huc_to_gt(huc);
intel_wakeref_t wakeref; intel_wakeref_t wakeref;
bool status = false; u32 status = 0;
if (!intel_uc_is_using_huc(&gt->uc)) if (!intel_uc_is_using_huc(&gt->uc))
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment