From 48ba9a53d5fd1d47f70bd1825ed527d842736d3a Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 30 Jan 2013 21:17:57 -0500 Subject: [PATCH] --- yaml --- r: 359172 b: refs/heads/master c: 8add862fad426469a04c879bf5bb01f666a3c58e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/iommu/tegra-smmu.c | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index 11346849ff4f..bfacda86df41 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0990a97a1fc649bf9a7e6057c326a835d1520847 +refs/heads/master: 8add862fad426469a04c879bf5bb01f666a3c58e diff --git a/trunk/drivers/iommu/tegra-smmu.c b/trunk/drivers/iommu/tegra-smmu.c index 7db150ca163e..9a09274d15a7 100644 --- a/trunk/drivers/iommu/tegra-smmu.c +++ b/trunk/drivers/iommu/tegra-smmu.c @@ -1026,15 +1026,11 @@ static ssize_t smmu_debugfs_stats_write(struct file *file, static int smmu_debugfs_stats_show(struct seq_file *s, void *v) { - struct smmu_debugfs_info *info; - struct smmu_device *smmu; - struct dentry *dent; + struct smmu_debugfs_info *info = s->private; + struct smmu_device *smmu = info->smmu; int i; const char * const stats[] = { "hit", "miss", }; - dent = d_find_alias(s->private); - info = dent->d_inode->i_private; - smmu = info->smmu; for (i = 0; i < ARRAY_SIZE(stats); i++) { u32 val; @@ -1048,14 +1044,12 @@ static int smmu_debugfs_stats_show(struct seq_file *s, void *v) stats[i], val, offs); } seq_printf(s, "\n"); - dput(dent); - return 0; } static int smmu_debugfs_stats_open(struct inode *inode, struct file *file) { - return single_open(file, smmu_debugfs_stats_show, inode); + return single_open(file, smmu_debugfs_stats_show, inode->i_private); } static const struct file_operations smmu_debugfs_stats_fops = {