Commit 74907e2d authored by Payal Kshirsagar's avatar Payal Kshirsagar Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: hal_com.c: Remove unnecessary parentheses

Challenge suggested by coccinelle.
Remove unnecessary parentheses around expressions.
Signed-off-by: default avatarPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb322b76
......@@ -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;
}
......
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