]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Use ERR_CAST to return an error-valued pointer
authorYu Jiaoliang <yujiaoliang@vivo.com>
Fri, 6 Sep 2024 07:01:09 +0000 (15:01 +0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 12 Sep 2024 19:18:21 +0000 (12:18 -0700)
commitbbb1ed0b4437ef728569457a136540ce2e6b11c4
treea7ae28b3959af5103da2e899d85c3acf03a0c8d8
parentf96dbf7c321d70834d46f3aedb75a671e839b51e
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: Yu Jiaoliang <yujiaoliang@vivo.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240906070109.1852860-1-yujiaoliang@vivo.com
drivers/gpu/drm/xe/xe_sa.c