[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1652751061-23045-1-git-send-email-baihaowen@meizu.com>
Date: Tue, 17 May 2022 09:31:01 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Amit Kucheria <amitk@...nel.org>,
Zhang Rui <rui.zhang@...el.com>
CC: Haowen Bai <baihaowen@...zu.com>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] thermal: intel: hfi: remove null check after call container_of()
container_of() will never return NULL, so remove useless code.
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
drivers/thermal/intel/intel_hfi.c | 2 --
1 file changed, 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);
}
--
2.7.4
Powered by blists - more mailing lists