diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-12-04 09:15:42 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 23:46:09 +0400 |
commit | f994a154c5318d132200862686fde13dca0979b1 (patch) | |
tree | 84876cd03f318420700b8a21581cef6c1bc2a472 /drivers | |
parent | 3bacaf0ce106d9caca75f64a58f3b938b070df29 (diff) | |
download | linux-f994a154c5318d132200862686fde13dca0979b1.tar.xz |
Drivers: hv: remove unused variable in vmbus_recvpacket_raw()
The variable userlen is initialized but never used
otherwise, so remove the unused variable.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hv/channel.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 064257e79f23..0b122f8c7005 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c @@ -780,7 +780,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer, { struct vmpacket_descriptor desc; u32 packetlen; - u32 userlen; int ret; bool signal = false; @@ -795,7 +794,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer, packetlen = desc.len8 << 3; - userlen = packetlen - (desc.offset8 << 3); *buffer_actual_len = packetlen; |