staging: rtl8723bs: hal: hal_com.c: Remove unnecessary parentheses
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Sat, 30 Mar 2019 05:12:42 +0000 (10:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Mar 2019 08:28:33 +0000 (09:28 +0100)
Challenge suggested by coccinelle.
Remove unnecessary parentheses around expressions.

Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_com.c

index b97b53c34449a7b4958d0f0542ae3c5e843e0b9f..f1c91483ca07ceeeb48ebf19c5cc25c738a1060d 100644 (file)
@@ -1389,11 +1389,11 @@ bool IsHexDigit(char chTmp)
 u32 MapCharToHexDigit(char chTmp)
 {
        if (chTmp >= '0' && chTmp <= '9')
-               return (chTmp - '0');
+               return chTmp - '0';
        else if (chTmp >= 'a' && chTmp <= 'f')
-               return (10 + (chTmp - 'a'));
+               return 10 + (chTmp - 'a');
        else if (chTmp >= 'A' && chTmp <= 'F')
-               return (10 + (chTmp - 'A'));
+               return 10 + (chTmp - 'A');
        else
                return 0;
 }