Skip to content

Commit

Permalink
macintosh/windfarm_pm91: Fix warning comparing pointer to 0
Browse files Browse the repository at this point in the history
Avoid pointer type value compared with 0 to make code clear.

Signed-off-by: Haowen Bai <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
Lotte-Bai authored and mpe committed Nov 24, 2022
1 parent 2f59562 commit 8831694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/macintosh/windfarm_pm91.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static void wf_smu_create_cpu_fans(void)

/* First, locate the PID params in SMU SBD */
hdr = smu_get_sdb_partition(SMU_SDB_CPUPIDDATA_ID, NULL);
if (hdr == 0) {
if (!hdr) {
printk(KERN_WARNING "windfarm: CPU PID fan config not found "
"max fan speed\n");
goto fail;
Expand Down

0 comments on commit 8831694

Please sign in to comment.