]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kselftest/arm64: Add parentheses around sizeof for clarity
authorVivek Yadav <vivekyadav1207731111@gmail.com>
Sun, 24 Aug 2025 06:14:02 +0000 (23:14 -0700)
committerWill Deacon <will@kernel.org>
Mon, 8 Sep 2025 15:01:22 +0000 (16:01 +0100)
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)
```

Signed-off-by: Vivek Yadav <vivekyadav1207731111@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/sve-ptrace.c

index 4cba3bcff66002d0378d26ab49985b56d0ee1528..79bcc2369cdb7321b7182b211a5c6dc706dc7b26 100644 (file)
@@ -123,7 +123,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;
        int ret;