From: Vivek Yadav <vivekyadav1207731...@gmail.com>

Added parentheses around sizeof to make the expression clearer
and improve readability. This change has no functional impact.

```
[command]
        ./scripts/checkpatch.pl tools/testing/selftests/arm64/fp/sve-ptrace.c

[output]
        WARNING: sizeof *sve should be sizeof(*sve)
```

Fixes: 0dca276ac4d20 : selftests: arm64: Add test for the SVE ptrace interface

Signed-off-by: Vivek Yadav <vivekyadav1207731...@gmail.com>
---
 tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c 
b/tools/testing/selftests/arm64/fp/sve-ptrace.c
index b22303778fb0..90c56b38dabf 100644
--- a/tools/testing/selftests/arm64/fp/sve-ptrace.c
+++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c
@@ -115,7 +115,7 @@ static struct user_sve_header *get_sve(pid_t pid, const 
struct vec_type *type,
 {
        struct user_sve_header *sve;
        void *p;
-       size_t sz = sizeof *sve;
+       size_t sz = sizeof(*sve);
        struct iovec iov;
 
        while (1) {
-- 
2.25.1


Reply via email to