Commit f994a154c5318d132200862686fde13dca0979b1

Authored by Wei Yongjun
Committed by Greg Kroah-Hartman
1 parent 3bacaf0ce1

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

drivers/hv/channel.c
... ... @@ -780,7 +780,6 @@
780 780 {
781 781 struct vmpacket_descriptor desc;
782 782 u32 packetlen;
783   - u32 userlen;
784 783 int ret;
785 784 bool signal = false;
786 785  
... ... @@ -795,7 +794,6 @@
795 794  
796 795  
797 796 packetlen = desc.len8 << 3;
798   - userlen = packetlen - (desc.offset8 << 3);
799 797  
800 798 *buffer_actual_len = packetlen;
801 799