On Sun, Sep 18, 2022, at 5:50 PM, [email protected] 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) {
>                 struct smu_sdbp_sensortree *st =
>                         (struct smu_sdbp_sensortree *)&hdr[1];

The more common way of writing this in the kernel is 
"if (hdr)".

     Arnd

Reply via email to