staging: rtl8188eu: simplify calculation
authorMichael Straube <straube.linux@gmail.com>
Tue, 18 Sep 2018 08:07:04 +0000 (10:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 11:30:18 +0000 (13:30 +0200)
Simplify calcualation:  * 10 / 2  can be reduced to  * 5
Also cleans missing spaces checkpatch issues.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

index c040f185074b34525b973b1f4a0573feb17f2814..0880f18520a0860a90c4a5ecc33301c3e3d5c6cd 100644 (file)
@@ -575,7 +575,7 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
                        i++;
                }
 
-               max_rate = max_rate*10/2;
+               max_rate *= 5;
        }
 
        return max_rate;