[PATCH -next] Drivers: hv: remove unused variable in vmbus_recvpacket_raw()

From: Wei Yongjun
Date: Tue Dec 04 2012 - 00:15:33 EST


From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>

The variable userlen is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
---
drivers/hv/channel.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c
index 773a2f2..3148d80 100644
--- a/drivers/hv/channel.c
+++ b/drivers/hv/channel.c
@@ -774,7 +774,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
{
struct vmpacket_descriptor desc;
u32 packetlen;
- u32 userlen;
int ret;

*buffer_actual_len = 0;
@@ -788,7 +787,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,


packetlen = desc.len8 << 3;
- userlen = packetlen - (desc.offset8 << 3);

*buffer_actual_len = packetlen;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/