[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220918021410.17369-1-jingyuwang_vip@163.com>
Date: Sun, 18 Sep 2022 10:14:10 +0800
From: Jingyu Wang <jingyuwang_vip@....com>
To: sudeep.holla@....com, cristian.marussi@....com,
linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, Jingyu Wang <jingyuwang_vip@....com>
Subject: [PATCH] firmware: arm_scmi: remove unnecessary 'NULL' values from pointer
There is no need to initialize the assignment.
Signed-off-by: Jingyu Wang <jingyuwang_vip@....com>
---
drivers/firmware/arm_scmi/perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c
index ecf5c4de851b..a8654d3d5ff9 100644
--- a/drivers/firmware/arm_scmi/perf.c
+++ b/drivers/firmware/arm_scmi/perf.c
@@ -723,7 +723,7 @@ static void *scmi_perf_fill_custom_report(const struct scmi_protocol_handle *ph,
const void *payld, size_t payld_sz,
void *report, u32 *src_id)
{
- void *rep = NULL;
+ void *rep;
switch (evt_id) {
case SCMI_EVENT_PERFORMANCE_LIMITS_CHANGED:
base-commit: d5538ab91d3a9a237805be6f8c6c272af2987995
--
2.34.1
Powered by blists - more mailing lists