diff options
author | Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> | 2019-03-30 10:42:42 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-30 09:28:33 +0100 |
commit | 74907e2d83fb9565664a47a90b880ccecd0c8a87 (patch) | |
tree | e2f2f0886823efcf6f4c4b8b357a5d7000ce57f2 | |
parent | eb322b764ffcaf72381e7c80ab3bc82e3412e44e (diff) | |
download | linux-74907e2d83fb9565664a47a90b880ccecd0c8a87.tar.bz2 |
staging: rtl8723bs: hal: hal_com.c: Remove unnecessary parentheses
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>
-rw-r--r-- | drivers/staging/rtl8723bs/hal/hal_com.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index b97b53c34449..f1c91483ca07 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -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; } |