Mateusz Starzyk e36f5b1c11 Fix parantheses on return and sizeof statements.
Used script:
```
import re
import sys

for arg in sys.argv[1:]:
    print(arg)
    with open(arg, 'r') as file:
        content = file.read()
        content = re.sub(r"return\s?\((?!.*\).*\()\s*\n?(.*)\n?\);", r"return \1;", \
            content, flags = re.M)
        content = re.sub(r"sizeof ([^\(][a-zA-Z0-9_\[\]]*)", r"sizeof(\1)",\
            content, flags = re.M)
    with open(arg, 'w') as file:
        file.write(content)

```
Executed with:
` find . -regextype posix-egrep -regex ".*\.([hc]|fmt|function)" | xargs -L1 python script.py`

Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
2021-08-10 16:54:21 +02:00
..
CMakeLists.txt Build: Add MBEDTLS_TARGET_PREFIX 2020-10-20 13:44:44 +01:00
crypto_examples.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
key_ladder_demo.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
key_ladder_demo.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
psa_constant_names.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00