summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_query.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_query.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_query.c')
-rw-r--r--drivers/gpu/drm/xe/xe_query.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index 4b7869596ba8..f880c9af1651 100644
--- a/drivers/gpu/drm/xe/xe_query.c
+++ b/drivers/gpu/drm/xe/xe_query.c
@@ -65,7 +65,7 @@ static int query_engines(struct xe_device *xe,
}
hw_engine_info = kmalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !hw_engine_info))
+ if (!hw_engine_info)
return -ENOMEM;
for_each_gt(gt, xe, gt_id)
@@ -182,7 +182,7 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
}
config = kzalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !config))
+ if (!config)
return -ENOMEM;
config->num_params = num_params;
@@ -231,7 +231,7 @@ static int query_gts(struct xe_device *xe, struct drm_xe_device_query *query)
}
gts = kzalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !gts))
+ if (!gts)
return -ENOMEM;
gts->num_gt = xe->info.gt_count;
@@ -278,7 +278,7 @@ static int query_hwconfig(struct xe_device *xe,
}
hwconfig = kzalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !hwconfig))
+ if (!hwconfig)
return -ENOMEM;
xe_device_mem_access_get(xe);