debugfs: remove unneeded cast in debugfs_print_regs32()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Nov 2011 07:22:08 +0000 (10:22 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 04:12:47 +0000 (20:12 -0800)
commit5858441c95587c6869950314742d99e6a03a2d16
treea190951e5c2340e9bc0a9eb3e9e87c03e1e6f90e
parent124a6b4c4dae0317a0689a42ed0c68fabeb10c8d
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>
fs/debugfs/file.c