lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAPgLHd9xtF36732aozVOupf4cyF0RxgSncRzAxF=3WhGV779cw@mail.gmail.com>
Date:	Tue, 4 Dec 2012 00:15:42 -0500
From:	Wei Yongjun <weiyj.lk@...il.com>
To:	kys@...rosoft.com, haiyangz@...rosoft.com
Cc:	yongjun_wei@...ndmicro.com.cn, devel@...uxdriverproject.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH -next] Drivers: hv: remove unused variable in vmbus_recvpacket_raw()

From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>

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

Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
---
 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ