Commit 5da77f37 authored by David Binder's avatar David Binder Committed by Greg Kroah-Hartman

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: default avatarDavid Binder <david.binder@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c4549595
...@@ -81,5 +81,5 @@ u64 visorchannel_get_clientpartition(struct visorchannel *channel); ...@@ -81,5 +81,5 @@ u64 visorchannel_get_clientpartition(struct visorchannel *channel);
int visorchannel_set_clientpartition(struct visorchannel *channel, int visorchannel_set_clientpartition(struct visorchannel *channel,
u64 partition_handle); u64 partition_handle);
char *visorchannel_uuid_id(uuid_le *guid, char *s); char *visorchannel_uuid_id(uuid_le *guid, char *s);
void __iomem *visorchannel_get_header(struct visorchannel *channel); void *visorchannel_get_header(struct visorchannel *channel);
#endif #endif
...@@ -153,10 +153,10 @@ visorchannel_write(struct visorchannel *channel, ulong offset, ...@@ -153,10 +153,10 @@ visorchannel_write(struct visorchannel *channel, ulong offset,
return 0; return 0;
} }
void __iomem * void *
visorchannel_get_header(struct visorchannel *channel) visorchannel_get_header(struct visorchannel *channel)
{ {
return (void __iomem *)&channel->chan_hdr; return &channel->chan_hdr;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment