Commit 5a66bfb2 authored by Haowen Bai's avatar Haowen Bai Committed by Rafael J. Wysocki

thermal: intel: hfi: remove NULL check after container_of() call

container_of() will never return NULL, so remove useless code.
Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 42226c98
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment