Skip to content

Commit 5a66bfb

Browse files
Lotte-Bairafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 42226c9 commit 5a66bfb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/thermal/intel/intel_hfi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ static void hfi_update_work_fn(struct work_struct *work)
243243

244244
hfi_instance = container_of(to_delayed_work(work), struct hfi_instance,
245245
update_work);
246-
if (!hfi_instance)
247-
return;
248246

249247
update_capabilities(hfi_instance);
250248
}

0 commit comments

Comments
 (0)