Commit 2b9bcf81 authored by David Binder's avatar David Binder Committed by Greg Kroah-Hartman

staging: unisys: visorchannel: remove redundant member size

Removes size member from the visorchannel struct, since it was
a duplicate of the nbytes member.
Signed-off-by: default avatarDavid Binder <david.binder@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc38082f
...@@ -40,7 +40,6 @@ struct visorchannel { ...@@ -40,7 +40,6 @@ struct visorchannel {
bool requested; bool requested;
struct channel_header chan_hdr; struct channel_header chan_hdr;
uuid_le guid; uuid_le guid;
ulong size;
bool needs_lock; /* channel creator knows if more than one */ bool needs_lock; /* channel creator knows if more than one */
/* thread will be inserting or removing */ /* thread will be inserting or removing */
spinlock_t insert_lock; /* protect head writes in chan_hdr */ spinlock_t insert_lock; /* protect head writes in chan_hdr */
...@@ -134,8 +133,6 @@ visorchannel_create_guts(u64 physaddr, unsigned long channel_bytes, ...@@ -134,8 +133,6 @@ visorchannel_create_guts(u64 physaddr, unsigned long channel_bytes,
} }
channel->nbytes = channel_bytes; channel->nbytes = channel_bytes;
channel->size = channel_bytes;
channel->guid = guid; channel->guid = guid;
return channel; return channel;
...@@ -186,7 +183,7 @@ EXPORT_SYMBOL_GPL(visorchannel_get_physaddr); ...@@ -186,7 +183,7 @@ EXPORT_SYMBOL_GPL(visorchannel_get_physaddr);
ulong ulong
visorchannel_get_nbytes(struct visorchannel *channel) visorchannel_get_nbytes(struct visorchannel *channel)
{ {
return channel->size; return channel->nbytes;
} }
EXPORT_SYMBOL_GPL(visorchannel_get_nbytes); EXPORT_SYMBOL_GPL(visorchannel_get_nbytes);
......
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