summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_huc_debugfs.c
diff options
context:
space:
mode:
authorFrancois Dugast <francois.dugast@intel.com>2023-07-19 16:20:59 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:37:51 +0300
commit955c09e2cc4894b5997f548de1bd3bdfa18e60e4 (patch)
tree10cee0ec2b5f694f4b98cf611b9f95cdcea79454 /drivers/gpu/drm/xe/xe_huc_debugfs.c
parent4d18eac03212fc2d8c3d9715e2261ac50e989403 (diff)
downloadlinux-955c09e2cc4894b5997f548de1bd3bdfa18e60e4.tar.xz
drm/xe: Rely on kmalloc/kzalloc log message
Those messages are unnecessary because a generic message is already produced in case of allocation failure. Besides, this also removes a misuse of the XE_IOCTL_DBG macro. Signed-off-by: Francois Dugast <francois.dugast@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_huc_debugfs.c')
-rw-r--r--drivers/gpu/drm/xe/xe_huc_debugfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_huc_debugfs.c b/drivers/gpu/drm/xe/xe_huc_debugfs.c
index ae3c21315d59..18585a7eeb9d 100644
--- a/drivers/gpu/drm/xe/xe_huc_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_huc_debugfs.c
@@ -55,10 +55,8 @@ void xe_huc_debugfs_register(struct xe_huc *huc, struct dentry *parent)
#define DEBUGFS_SIZE (ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list))
local = drmm_kmalloc(&huc_to_xe(huc)->drm, DEBUGFS_SIZE, GFP_KERNEL);
- if (!local) {
- XE_WARN_ON("Couldn't allocate memory");
+ if (!local)
return;
- }
memcpy(local, debugfs_list, DEBUGFS_SIZE);
#undef DEBUGFS_SIZE