diff options
author | Jing Yangyang <jing.yangyang@zte.com.cn> | 2021-08-25 08:18:38 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-05-04 11:37:44 +0200 |
commit | 8cd1d2e9d08654b66c17432eccd404de9137ac08 (patch) | |
tree | 1da3e0c844e1ce09f05feb94bda580e7d1f1689b /drivers/macintosh/mac_hid.c | |
parent | powerpc: use strscpy to replace strlcpy (diff) | |
download | linux-8cd1d2e9d08654b66c17432eccd404de9137ac08.tar.xz linux-8cd1d2e9d08654b66c17432eccd404de9137ac08.zip |
macintosh/smu: Fix warning comparing pointer to 0
Fix the following coccicheck warning:
./drivers/macintosh/smu.c:1089: 11-12:
WARNING comparing pointer to 0, suggest !E
./drivers/macintosh/smu.c:1256:11-12:
WARNING comparing pointer to 0
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210825061838.69746-1-deng.changcheng@zte.com.cn
Diffstat (limited to 'drivers/macintosh/mac_hid.c')
0 files changed, 0 insertions, 0 deletions