diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-07 19:21:25 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-08 06:38:48 +0300 |
commit | 27a22096b21a88300bc986fef85ce54cb7741853 (patch) | |
tree | c6d60831432d9e94d5854032f5438a3ed864b9c1 /drivers/net/wireless/intel/iwlwifi/dvm | |
parent | f66debf1b3755039680289d83fe7a92a4ad3d77d (diff) | |
download | linux-27a22096b21a88300bc986fef85ce54cb7741853.tar.xz |
iwlwifi: use %pd
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/dvm')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c index f6591c83d636..affe760c8c22 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c @@ -2422,14 +2422,12 @@ int iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir) */ if (priv->mac80211_registered) { char buf[100]; - struct dentry *mac80211_dir, *dev_dir, *root_dir; + struct dentry *mac80211_dir, *dev_dir; dev_dir = dbgfs_dir->d_parent; - root_dir = dev_dir->d_parent; mac80211_dir = priv->hw->wiphy->debugfsdir; - snprintf(buf, 100, "../../%s/%s", root_dir->d_name.name, - dev_dir->d_name.name); + snprintf(buf, 100, "../../%pd2", dev_dir); if (!debugfs_create_symlink("iwlwifi", mac80211_dir, buf)) goto err; |