[PATCH 2/6] vt6655: fix compiler warnings in iwctl_siwrts

Devendra Naga devendra.aaru at gmail.com
Sat Apr 6 18:18:16 UTC 2013


drivers/staging/vt6655/iwctl.c: In function ‘iwctl_siwrts’:
drivers/staging/vt6655/iwctl.c:1101:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]

fix it by returning rc

Signed-off-by: Devendra Naga <devendra.aaru at gmail.com>
---
 drivers/staging/vt6655/iwctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vt6655/iwctl.c b/drivers/staging/vt6655/iwctl.c
index 5cdda8d..5744258 100644
--- a/drivers/staging/vt6655/iwctl.c
+++ b/drivers/staging/vt6655/iwctl.c
@@ -1113,7 +1113,7 @@ int iwctl_siwrts(struct net_device *dev,
 	    }
     }
 
-	return 0;
+	return rc;
 }
 
 /*
-- 
1.8.1.4




More information about the devel mailing list