]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/xe/configfs: Drop redundant init() error message
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 31 Jul 2025 19:33:32 +0000 (21:33 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 5 Aug 2025 18:53:51 +0000 (11:53 -0700)
There is no need to print separate error message since we will
also print one in xe_init(). Also drop temporary variable, which
was likely just taken from the example code.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250731193339.179829-5-michal.wajdeczko@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_configfs.c

index 56fbf4c1c37f0e0604fd51439b86b1c0a6f9bca5..6aa0531bcf76ecbc7ae0a98bda592445102d7afd 100644 (file)
@@ -392,15 +392,12 @@ u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev)
 
 int __init xe_configfs_init(void)
 {
-       struct config_group *root = &xe_configfs.su_group;
        int ret;
 
-       config_group_init(root);
+       config_group_init(&xe_configfs.su_group);
        mutex_init(&xe_configfs.su_mutex);
        ret = configfs_register_subsystem(&xe_configfs);
        if (ret) {
-               pr_err("Error %d while registering %s subsystem\n",
-                      ret, root->cg_item.ci_namebuf);
                mutex_destroy(&xe_configfs.su_mutex);
                return ret;
        }