Commit d5fa6721 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: rtl8188eu: write out multiplying in wifirate2_ratetbl_inx()

Write out multiplying in wifirate2_ratetbl_inx() to improve
readabilitiy and clear checkpatch issues with missing spaces
around '*' operator.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 497d6a74
...@@ -1123,29 +1123,29 @@ static int wifirate2_ratetbl_inx(unsigned char rate) ...@@ -1123,29 +1123,29 @@ static int wifirate2_ratetbl_inx(unsigned char rate)
rate = rate & 0x7f; rate = rate & 0x7f;
switch (rate) { switch (rate) {
case 54*2: case 108:
return 11; return 11;
case 48*2: case 96:
return 10; return 10;
case 36*2: case 72:
return 9; return 9;
case 24*2: case 48:
return 8; return 8;
case 18*2: case 36:
return 7; return 7;
case 12*2: case 24:
return 6; return 6;
case 9*2: case 18:
return 5; return 5;
case 6*2: case 12:
return 4; return 4;
case 11*2: case 22:
return 3; return 3;
case 11: case 11:
return 2; return 2;
case 2*2: case 4:
return 1; return 1;
case 1*2: case 2:
return 0; return 0;
default: default:
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment