Skip to contentSkip to conversation

staging: vt6656: control.c: Remove dead code

PATCH In review Marcos Paulo de Souza 1 participant 1 message Dec 1, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 staging: vt6656: control.c: Remove dead code

This patch removes some commented code, and a unnused variables. Remove too a return statement at end of void function.

---
 drivers/staging/vt6656/control.c |   26 ++++--------------
 drivers/staging/vt6656/usbpipe.c |   53 --------------------------------------
 2 files changed, 6 insertions(+), 73 deletions(-)
drivers/staging/vt6656/control.c +6 -20
index 5d8c571..74e9e7a 100644
@@ -43,19 +43,6 @@
 #include "control.h"
 #include "rndis.h"
 
-/*---------------------  Static Definitions -------------------------*/
-/* static int          msglevel                =MSG_LEVEL_INFO;  */
-/* static int          msglevel                =MSG_LEVEL_DEBUG; */
-/*---------------------  Static Classes  ----------------------------*/
-
-/*---------------------  Static Variables  --------------------------*/
-
-/*---------------------  Static Functions  --------------------------*/
-
-/*---------------------  Export Variables  --------------------------*/
-
-/*---------------------  Export Functions  --------------------------*/
-
 void ControlvWriteByte(PSDevice pDevice, BYTE byRegType, BYTE byRegOfs,
 			BYTE byData)
 {
@@ -72,14 +59,13 @@ void ControlvWriteByte(PSDevice pDevice, BYTE byRegType, BYTE byRegOfs,
 void ControlvReadByte(PSDevice pDevice, BYTE byRegType, BYTE byRegOfs,
 			PBYTE pbyData)
 {
-	int ntStatus;
 	BYTE	byData1;
-	ntStatus = CONTROLnsRequestIn(pDevice,
-					MESSAGE_TYPE_READ,
-					byRegOfs,
-					byRegType,
-					1,
-					&byData1);
+	CONTROLnsRequestIn(pDevice,
+			MESSAGE_TYPE_READ,
+			byRegOfs,
+			byRegType,
+			1,
+			&byData1);
 	*pbyData = byData1;
 }
 
drivers/staging/vt6656/usbpipe.c +0 -53

114 lines not on this page · raw message

Signature · 1 line
1.7.4.4