Skip to content

Commit

Permalink
Drivers: hv: remove unused variable in vmbus_recvpacket_raw()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent 3bacaf0 commit f994a15
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit f994a15

Please sign in to comment.