staging: vt6656: control.c: Remove dead code
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.
Signed-off-by Marcos Paulo de Souza <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Forest Bond <[email protected]>
--- 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
@@ -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