Drivers: hv: remove unused variable in vmbus_recvpacket_raw()
Wei Yongjun [Tue, 4 Dec 2012 05:15:42 +0000 (00:15 -0500)]
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>

drivers/hv/channel.c

index 064257e..0b122f8 100644 (file)
@@ -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;