diff options
author | Francois Dugast <francois.dugast@intel.com> | 2023-07-19 16:20:59 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:37:51 +0300 |
commit | 955c09e2cc4894b5997f548de1bd3bdfa18e60e4 (patch) | |
tree | 10cee0ec2b5f694f4b98cf611b9f95cdcea79454 /drivers/gpu/drm/xe/xe_gt_debugfs.c | |
parent | 4d18eac03212fc2d8c3d9715e2261ac50e989403 (diff) | |
download | linux-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_gt_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_gt_debugfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_debugfs.c b/drivers/gpu/drm/xe/xe_gt_debugfs.c index f9f653243f20..e622174a866d 100644 --- a/drivers/gpu/drm/xe/xe_gt_debugfs.c +++ b/drivers/gpu/drm/xe/xe_gt_debugfs.c @@ -173,10 +173,8 @@ void xe_gt_debugfs_register(struct xe_gt *gt) */ #define DEBUGFS_SIZE (ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list)) local = drmm_kmalloc(>_to_xe(gt)->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 |