thermal/core: Drop valid pointer check for type
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 9 Sep 2022 18:13:22 +0000 (19:13 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 4 Oct 2022 09:21:30 +0000 (11:21 +0200)
commitc71d8035f1b77dc8e29e41942ab31900fa79c1ae
tree04936bd6a8aa90050de804837b345d4ea61209fc
parentc7114365e3b7566cba86902123538c7d9bb62b7a
thermal/core: Drop valid pointer check for type

Drop the valid pointer check for type in
thermal_zone_device_register_with_trips() as we already have it confirmed
for != NULL from the previous if block.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220909181322.10933-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_core.c