From: Haowen Bai <baihaowen@meizu.com> Date: Tue, 17 May 2022 01:31:01 +0000 (+0800) Subject: thermal: intel: hfi: remove NULL check after container_of() call X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5a66bfb27748d4fd284997dea060c76cdc245375;p=linux.git thermal: intel: hfi: remove NULL check after container_of() call container_of() will never return NULL, so remove useless code. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> --- diff --git a/drivers/thermal/intel/intel_hfi.c b/drivers/thermal/intel/intel_hfi.c index 730fd121df6ec..a0640f762dc5d 100644 --- a/drivers/thermal/intel/intel_hfi.c +++ b/drivers/thermal/intel/intel_hfi.c @@ -243,8 +243,6 @@ static void hfi_update_work_fn(struct work_struct *work) hfi_instance = container_of(to_delayed_work(work), struct hfi_instance, update_work); - if (!hfi_instance) - return; update_capabilities(hfi_instance); }