summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Meiring <johanmeiring@gmail.com>2012-11-30 18:58:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 11:03:32 -0800
commitf83a7c34d4e57a5afddd94adf39c26f2a09677e1 (patch)
tree3920f682e4a808e69054c6c820c13a5c10817941
parent2d33309ef901156b0ad8e2185bec3c06d46976ef (diff)
staging: wlags49_h2: wl_enc: corrects spacing around colons
This commit fixes incorrect use of spaces around colons. Signed-off-by: Johan Meiring <johanmeiring@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wlags49_h2/wl_enc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/wlags49_h2/wl_enc.c b/drivers/staging/wlags49_h2/wl_enc.c
index 1d143cd1b04d..2cf3a113d238 100644
--- a/drivers/staging/wlags49_h2/wl_enc.c
+++ b/drivers/staging/wlags49_h2/wl_enc.c
@@ -126,7 +126,7 @@ int wl_wep_code(char *szCrypt, char *szDest, void *Data, int nLen)
switch (i % 3) {
- case 0 :
+ case 0:
szDest[t] = ((k & 0xFC) >> 2) + CH_START ;
szDest[t+1] = ((k & 0x03) << 4) + CH_START ;
@@ -135,7 +135,7 @@ int wl_wep_code(char *szCrypt, char *szDest, void *Data, int nLen)
break;
- case 1 :
+ case 1:
szDest[t] += ((k & 0xF0) >> 4);
szDest[t+1] = ((k & 0x0F) << 2) + CH_START ;
@@ -144,7 +144,7 @@ int wl_wep_code(char *szCrypt, char *szDest, void *Data, int nLen)
break;
- case 2 :
+ case 2:
szDest[t] += ((k & 0xC0) >> 6);
szDest[t+1] = (k & 0x3F) + CH_START ;
@@ -201,20 +201,20 @@ int wl_wep_decode(char *szCrypt, void *Dest, char *szData)
for (i = t = 0; i < nLen; i++, t++) {
switch (i % 3) {
- case 0 :
+ case 0:
szDest[i] = (((szData[t] - CH_START) & 0x3f) << 2) +
(((szData[t+1] - CH_START) & 0x30) >> 4);
break;
- case 1 :
+ case 1:
szDest[i] = (((szData[t] - CH_START) & 0x0f) << 4) +
(((szData[t+1] - CH_START) & 0x3c) >> 2);
break;
- case 2 :
+ case 2:
szDest[i] = (((szData[t] - CH_START) & 0x03) << 6) +
((szData[t+1] - CH_START) & 0x3f);
t++;