aboutsummaryrefslogtreecommitdiffstats
path: root/fs/debugfs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-11-24 02:22:08 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-26 23:12:47 -0500
commit5858441c95587c6869950314742d99e6a03a2d16 (patch)
treea190951e5c2340e9bc0a9eb3e9e87c03e1e6f90e /fs/debugfs
parent124a6b4c4dae0317a0689a42ed0c68fabeb10c8d (diff)
debugfs: remove unneeded cast in debugfs_print_regs32()
The cast here causes a Sparse warning: fs/debugfs/file.c:561:42: warning: cast removes address space of expression fs/debugfs/file.c:561:42: warning: incorrect type in argument 1 (different address spaces) fs/debugfs/file.c:561:42: expected void const volatile [noderef] <asn:2>*addr fs/debugfs/file.c:561:42: got void *<noident> It's redundant to cast it to a (void *) anyway when it is already a (void __iomem *). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/debugfs')
-rw-r--r--fs/debugfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
index e0a3a59a6744..989f07fb86f7 100644
--- a/fs/debugfs/file.c
+++ b/fs/debugfs/file.c
@@ -558,7 +558,7 @@ int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
558 if (prefix) 558 if (prefix)
559 ret += seq_printf(s, "%s", prefix); 559 ret += seq_printf(s, "%s", prefix);
560 ret += seq_printf(s, "%s = 0x%08x\n", regs->name, 560 ret += seq_printf(s, "%s = 0x%08x\n", regs->name,
561 readl((void *)(base + regs->offset))); 561 readl(base + regs->offset));
562 } 562 }
563 return ret; 563 return ret;
564} 564}