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>
This commit is contained in:
parent
3bacaf0ce1
commit
f994a154c5
@ -780,7 +780,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
|
|||||||
{
|
{
|
||||||
struct vmpacket_descriptor desc;
|
struct vmpacket_descriptor desc;
|
||||||
u32 packetlen;
|
u32 packetlen;
|
||||||
u32 userlen;
|
|
||||||
int ret;
|
int ret;
|
||||||
bool signal = false;
|
bool signal = false;
|
||||||
|
|
||||||
@ -795,7 +794,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
|
|||||||
|
|
||||||
|
|
||||||
packetlen = desc.len8 << 3;
|
packetlen = desc.len8 << 3;
|
||||||
userlen = packetlen - (desc.offset8 << 3);
|
|
||||||
|
|
||||||
*buffer_actual_len = packetlen;
|
*buffer_actual_len = packetlen;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user