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>
This commit is contained in:
Haowen Bai 2022-05-17 09:31:01 +08:00 committed by Rafael J. Wysocki
parent 42226c9897
commit 5a66bfb277

View File

@ -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);
}