Loading drivers/scsi/ufs/ufs-debugfs.c +2 −5 Original line number Diff line number Diff line Loading @@ -1470,17 +1470,14 @@ DEFINE_SIMPLE_ATTRIBUTE(ufsdbg_err_state, void ufsdbg_add_debugfs(struct ufs_hba *hba) { char root_name[sizeof("ufshcd00")]; if (!hba) { dev_err(hba->dev, "%s: NULL hba, exiting", __func__); goto err_no_root; } snprintf(root_name, ARRAY_SIZE(root_name), "%s%d", UFSHCD, hba->host->host_no); hba->debugfs_files.debugfs_root = debugfs_create_dir(dev_name(hba->dev), NULL); hba->debugfs_files.debugfs_root = debugfs_create_dir(root_name, NULL); if (IS_ERR(hba->debugfs_files.debugfs_root)) /* Don't complain -- debugfs just isn't enabled */ goto err_no_root; Loading Loading
drivers/scsi/ufs/ufs-debugfs.c +2 −5 Original line number Diff line number Diff line Loading @@ -1470,17 +1470,14 @@ DEFINE_SIMPLE_ATTRIBUTE(ufsdbg_err_state, void ufsdbg_add_debugfs(struct ufs_hba *hba) { char root_name[sizeof("ufshcd00")]; if (!hba) { dev_err(hba->dev, "%s: NULL hba, exiting", __func__); goto err_no_root; } snprintf(root_name, ARRAY_SIZE(root_name), "%s%d", UFSHCD, hba->host->host_no); hba->debugfs_files.debugfs_root = debugfs_create_dir(dev_name(hba->dev), NULL); hba->debugfs_files.debugfs_root = debugfs_create_dir(root_name, NULL); if (IS_ERR(hba->debugfs_files.debugfs_root)) /* Don't complain -- debugfs just isn't enabled */ goto err_no_root; Loading