diff options
author | Erick Archer <erick.archer@outlook.com> | 2024-06-02 19:23:54 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-13 19:19:23 +0100 |
commit | f91f9ece67972885fd41d06dfd034dcce057ef20 (patch) | |
tree | d7fd7ce94bb2f3e46cbe54f32bbedf6827847700 /net/batman-adv/hash.c | |
parent | f451fbd73b0d54ef53bc2c80e4d969df1c7c7d96 (diff) | |
download | linux-f91f9ece67972885fd41d06dfd034dcce057ef20.tar.gz linux-f91f9ece67972885fd41d06dfd034dcce057ef20.tar.bz2 linux-f91f9ece67972885fd41d06dfd034dcce057ef20.zip |
iio: event: use sizeof(*pointer) instead of sizeof(type)
It is preferred to use sizeof(*pointer) instead of sizeof(type)
due to the type of the variable can change and one needs not
change the former (unlike the latter). At the same time refactor
the NULL comparison.
This patch has no effect on runtime behavior.
Signed-off-by: Erick Archer <erick.archer@outlook.com>
Link: https://lore.kernel.org/r/AS8PR02MB7237D024459C314CECE72EAF8BFE2@AS8PR02MB7237.eurprd02.prod.outlook.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'net/batman-adv/hash.c')
0 files changed, 0 insertions, 0 deletions