macintosh/smu: Fix warning comparing pointer to 0
authorJing Yangyang <jing.yangyang@zte.com.cn>
Wed, 25 Aug 2021 06:18:38 +0000 (23:18 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 May 2022 09:37:44 +0000 (19:37 +1000)
commit8cd1d2e9d08654b66c17432eccd404de9137ac08
tree1da3e0c844e1ce09f05feb94bda580e7d1f1689b
parenta2ece1f512959258f29a11909d23a44fc95edf97
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
drivers/macintosh/smu.c