[bug report] thermal: Don't use 'device' internal thermal zone structure field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Daniel Lezcano,

This is a semi-automatic email about new static checker warnings.

The patch dec07d399cc8: "thermal: Don't use 'device' internal thermal 
zone structure field" from Mar 1, 2023, leads to the following Smatch 
complaint:

    drivers/thermal/thermal_hwmon.c:232 thermal_remove_hwmon_sysfs()
    error: we previously assumed 'hwmon' could be null (see line 230)

drivers/thermal/thermal_hwmon.c
   229		hwmon = thermal_hwmon_lookup_by_type(tz);
   230		if (unlikely(!hwmon)) {
                             ^^^^^^
   231			/* Should never happen... */
   232			dev_dbg(hwmon->device, "hwmon device lookup failed!\n");
                                ^^^^^^^^^^^^^
hwmon is NULL.

   233			return;
   234		}

regards,
dan carpenter



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux