]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Fix xe_tile_init_noalloc() error propagation
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 13 Feb 2025 19:29:00 +0000 (11:29 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 14 Feb 2025 19:42:54 +0000 (11:42 -0800)
Propagate the error to the caller so initialization properly stops if
sysfs creation fails.

Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213192909.996148-4-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_tile.c

index d9a7a04ff652fb52e41c5f58a21167f2d7e67a71..d29658ff4dd417f95aec53ce83aeac0b971ea70d 100644 (file)
@@ -168,9 +168,7 @@ int xe_tile_init_noalloc(struct xe_tile *tile)
 
        xe_wa_apply_tile_workarounds(tile);
 
-       err = xe_tile_sysfs_init(tile);
-
-       return 0;
+       return xe_tile_sysfs_init(tile);
 }
 
 int xe_tile_init(struct xe_tile *tile)