diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-05-17 03:31:01 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-05-18 20:53:05 +0200 |
commit | 5a66bfb27748d4fd284997dea060c76cdc245375 (patch) | |
tree | 3dcbc527062da280c81fe7f47475fb5f3c6f9991 /drivers/thermal/intel | |
parent | Linux 5.18-rc7 (diff) | |
download | linux-5a66bfb27748d4fd284997dea060c76cdc245375.tar.xz linux-5a66bfb27748d4fd284997dea060c76cdc245375.zip |
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>
Diffstat (limited to 'drivers/thermal/intel')
-rw-r--r-- | drivers/thermal/intel/intel_hfi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/thermal/intel/intel_hfi.c b/drivers/thermal/intel/intel_hfi.c index 730fd121df6e..a0640f762dc5 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); } |