summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_gt_sysfs.c
diff options
context:
space:
mode:
authorFrancois Dugast <francois.dugast@intel.com>2023-07-19 15:51:08 +0200
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 17:37:52 +0100
commit72e8d73b712d2232019b33d2331099d3071ea94a (patch)
tree1680307d4c2b0c2f5bfee524c87426b150e3d9f1 /drivers/gpu/drm/xe/xe_gt_sysfs.c
parentdrm/xe/execlist: Remove leftover printk messages (diff)
downloadlinux-72e8d73b712d2232019b33d2331099d3071ea94a.tar.xz
linux-72e8d73b712d2232019b33d2331099d3071ea94a.zip
drm/xe: Cleanup style warnings and errors
Fix 6 errors and 20 warnings reported by checkpatch.pl. 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_sysfs.c')
-rw-r--r--drivers/gpu/drm/xe/xe_gt_sysfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_sysfs.c b/drivers/gpu/drm/xe/xe_gt_sysfs.c
index b955940e8dc6..c69d2e8a0fe1 100644
--- a/drivers/gpu/drm/xe/xe_gt_sysfs.c
+++ b/drivers/gpu/drm/xe/xe_gt_sysfs.c
@@ -37,10 +37,8 @@ void xe_gt_sysfs_init(struct xe_gt *gt)
int err;
kg = kzalloc(sizeof(*kg), GFP_KERNEL);
- if (!kg) {
- drm_warn(&xe->drm, "Allocating kobject failed.\n");
+ if (!kg)
return;
- }
kobject_init(&kg->base, &xe_gt_sysfs_kobj_type);
kg->gt = gt;