summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visorbus/visorchannel.c
diff options
context:
space:
mode:
authorDavid Binder2017-03-17 16:27:11 +0100
committerGreg Kroah-Hartman2017-03-21 07:58:46 +0100
commit5da77f375d2364385842602b50057aafc039e543 (patch)
treea6250c0b914e458ce4d99dc98fe25c6b30272d9a /drivers/staging/unisys/visorbus/visorchannel.c
parentstaging: unisys: include: simplify spar_check_channel_client (diff)
downloadkernel-qcow2-linux-5da77f375d2364385842602b50057aafc039e543.tar.gz
kernel-qcow2-linux-5da77f375d2364385842602b50057aafc039e543.tar.xz
kernel-qcow2-linux-5da77f375d2364385842602b50057aafc039e543.zip
staging: unisys: visorbus: Remove pointer cast that causes sparse warning
Removes unnecessary cast of to __iomem of a non-io-mapped pointer, thereby eliminating the following sparse warning: visorchannel.c:159:17: warning: cast adds address space to expression (<asn:2>) Signed-off-by: David Binder <david.binder@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <timothy.sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchannel.c')
-rw-r--r--drivers/staging/unisys/visorbus/visorchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c
index 31cd37dad736..1b1ef9357707 100644
--- a/drivers/staging/unisys/visorbus/visorchannel.c
+++ b/drivers/staging/unisys/visorbus/visorchannel.c
@@ -153,10 +153,10 @@ visorchannel_write(struct visorchannel *channel, ulong offset,
return 0;
}
-void __iomem *
+void *
visorchannel_get_header(struct visorchannel *channel)
{
- return (void __iomem *)&channel->chan_hdr;
+ return &channel->chan_hdr;
}
/*