mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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:
parent
42226c9897
commit
5a66bfb277
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user