summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-10-08 14:44:55 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2016-10-08 14:44:55 (GMT)
commit73e8fb2d596d5903cde6dcced39c0b88b5770a56 (patch)
tree27c63346b888ce8f086a81ad801755bc1d4aa2d8 /drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
parent33e09f0ee76e9e4108c5aed67e027ef5e3fe0634 (diff)
parent3baf32898e1c88792fa7cadc88f601833bdae3da (diff)
downloadlinux-73e8fb2d596d5903cde6dcced39c0b88b5770a56.tar.xz
Merge branch 'work.const-qstr' into work.misc
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
index b344898..97ab1a8 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
@@ -1564,9 +1564,7 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
* Create a symlink with mac80211. It will be removed when mac80211
* exists (before the opmode exists which removes the target.)
*/
- snprintf(buf, 100, "../../%s/%s",
- dbgfs_dir->d_parent->d_parent->d_name.name,
- dbgfs_dir->d_parent->d_name.name);
+ snprintf(buf, 100, "../../%pd2", dbgfs_dir->d_parent);
if (!debugfs_create_symlink("iwlwifi", mvm->hw->wiphy->debugfsdir, buf))
goto err;