Commit bbb1ed0b authored by Yu Jiaoliang's avatar Yu Jiaoliang Committed by Matthew Brost
Browse files

drm/xe: Use ERR_CAST to return an error-valued pointer



Instead of directly casting and returning an error-valued pointer,
use ERR_CAST to make the error handling more explicit and improve
code clarity.

Signed-off-by: default avatarYu Jiaoliang <yujiaoliang@vivo.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240906070109.1852860-1-yujiaoliang@vivo.com
parent f96dbf7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment