On Sun, Sep 18, 2022, at 5:50 PM, cgel@gmail.com wrote:
> @@ -970,7 +970,7 @@ static int pm121_init_pm(void)
> const struct smu_sdbp_header *hdr;
>
> hdr = smu_get_sdb_partition(SMU_SDB_SENSORTREE_ID, NULL);
> - if (hdr != 0) {
> + if (hdr != NULL) {
>
From: Xu Panda
Comparing pointer whith NULL instead of comparing pointer to 0.
Reported-by: Zeal Robot
Signed-off-by: Xu Panda
---
drivers/macintosh/windfarm_pm121.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/macintosh/windfarm_pm121.c
b/drivers/macintosh