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>
This commit is contained in:
parent
eb322b764f
commit
74907e2d83
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue